Merge branch 'systemd_restart' into 'master'
systemd: restart l2tpns on failure See merge request l2tpns/l2tpns!11
This commit is contained in:
commit
a5ddc0f64a
1 changed files with 2 additions and 0 deletions
|
|
@ -7,6 +7,8 @@ Documentation=man:l2tpns(8) man:startup-config(5)
|
||||||
EnvironmentFile=-/etc/default/l2tpns
|
EnvironmentFile=-/etc/default/l2tpns
|
||||||
ExecStart=/usr/sbin/l2tpns $L2TPNS_OPTS
|
ExecStart=/usr/sbin/l2tpns $L2TPNS_OPTS
|
||||||
ExecReload=/bin/kill -HUP $MAINPID
|
ExecReload=/bin/kill -HUP $MAINPID
|
||||||
|
Restart=on-failure
|
||||||
|
RestartSec=5s
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
WantedBy=multi-user.target
|
WantedBy=multi-user.target
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue