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:
parent
cff4a52c50
commit
4b1153d166
1 changed files with 11 additions and 0 deletions
11
scripts/l2tpns.service
Normal file
11
scripts/l2tpns.service
Normal 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue