l2tpns/scripts/l2tpns.service
Baptiste Jonglez 4b1153d166 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)
2020-11-05 23:20:43 +01:00

11 lines
249 B
Desktop File

[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