From 4b1153d1662a929a9e391be743eea4fa457b8646 Mon Sep 17 00:00:00 2001 From: Baptiste Jonglez Date: Thu, 5 Nov 2020 23:20:43 +0100 Subject: [PATCH] Add systemd startup script Note that the "-d" option ("detach") should *not* be used with systemd, because it expects the managed process to stay in the foreground. This startup script was originally added in Debian: https://salsa.debian.org/debian/l2tpns/-/blob/master/debian/l2tpns.service (albeit with the -d option) --- scripts/l2tpns.service | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 scripts/l2tpns.service diff --git a/scripts/l2tpns.service b/scripts/l2tpns.service new file mode 100644 index 0000000..235bcce --- /dev/null +++ b/scripts/l2tpns.service @@ -0,0 +1,11 @@ +[Unit] +Description=Layer 2 tunneling protocol network server (LNS) +After=network.target + +[Service] +EnvironmentFile=-/etc/default/l2tpns +ExecStart=/usr/sbin/l2tpns $L2TPNS_OPTS +ExecReload=/bin/kill -HUP $MAINPID + +[Install] +WantedBy=multi-user.target