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)
11 lines
249 B
Desktop File
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
|