From: Michael Tremer Date: Fri, 22 Jun 2012 11:26:42 +0000 (+0000) Subject: ppp: Add systemd unit files. X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cd3ed4fd8d3529277cc27369a1633579fbb6d51a;p=ipfire-3.x.git ppp: Add systemd unit files. --- diff --git a/ppp/ppp.nm b/ppp/ppp.nm index f82be752c..8a0ab3f63 100644 --- a/ppp/ppp.nm +++ b/ppp/ppp.nm @@ -5,7 +5,7 @@ name = ppp version = 2.4.5 -release = 3 +release = 4 groups = System/Daemons url = ftp://ftp.samba.org/pub/ppp/ @@ -34,7 +34,7 @@ build CFLAGS += -fPIC prepare_cmds - sed -e "s@^RUNDIR .*@RUNDIR = /var/run/ppp@" \ + sed -e "s@^RUNDIR .*@RUNDIR = /run/ppp@" \ -e "s@^LOGDIR .*@LOGDIR = /var/log/ppp@" \ -i linux/Makefile.top diff --git a/ppp/systemd/pppd@.service b/ppp/systemd/pppd@.service new file mode 100644 index 000000000..a99c7cc73 --- /dev/null +++ b/ppp/systemd/pppd@.service @@ -0,0 +1,14 @@ +[Unit] +Description=Point-to-Point protocol daemon on %I +BindTo=dev-%I.device +After=dev-%I.device + +[Service] +Type=forking +ExecStartPre=/usr/lib/network/helpers/pppd-config-helper create %I +ExecStart=/usr/sbin/pppd file /run/network/ppp/%I/pppd.conf +ExecStopPost=/usr/lib/network/helpers/pppd-config-helper remove %I +PIDFile=/run/ppp-%I.pid +Restart=failure +UtmpIdentifier=%I +KillMode=process