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)
This commit is contained in:
Baptiste Jonglez 2020-11-05 23:20:43 +01:00
parent cff4a52c50
commit 4b1153d166

11
scripts/l2tpns.service Normal file
View file

@ -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