systemd: restart l2tpns on failure
When a l2tpns cluster gets out of a "split brain" situation, l2tpns will consider that it is not normal to having multiple master, and some members of the cluster will voluntarily kill themselves. While this is probably the best thing to do for l2tpns in this situation, continued operation is important. Let's tell systemd to restart l2tpns in such cases. Looking at the code, there are several other places where l2tpns might exit in case of grave failure, and this change will also cover these cases.
This commit is contained in:
parent
a8694ed0bc
commit
2da36a071f
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