From 426f9d33d24a163fc1fc169930d7b969abf846b0 Mon Sep 17 00:00:00 2001 From: Christian Poessinger Date: Sun, 1 Dec 2019 10:43:02 +0100 Subject: pppoe: T1318: use systemd to manage connection This reduces the amount of self written code to start-stop-daemon and also kill the process if it has no connection yet (there won't be a PID file in this case) and getting the proper PID for multiple processes would require me to walk the /proc//cmdline for every binary involved. --- src/etc/systemd/system/ppp@.service | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 src/etc/systemd/system/ppp@.service (limited to 'src/etc/systemd/system/ppp@.service') diff --git a/src/etc/systemd/system/ppp@.service b/src/etc/systemd/system/ppp@.service new file mode 100644 index 000000000..d271efb41 --- /dev/null +++ b/src/etc/systemd/system/ppp@.service @@ -0,0 +1,11 @@ +[Unit] +Description=Dialing PPP connection %I +After=network.target + +[Service] +ExecStart=/usr/sbin/pppd call %I nodetach nolog +Restart=on-failure +RestartSec=5s + +[Install] +WantedBy=multi-user.target -- cgit v1.2.3