Commit graph

5 commits

Author SHA1 Message Date
Sebastien Badia
48e7ef75b7
ci: test L2TPNS version (Ref #11) 2022-08-24 13:16:43 +02:00
Baptiste Jonglez
2da36a071f 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.
2021-02-14 17:51:58 +01:00
Sebastien Badia
fe6a557351
init: Added documentation key on SystemD unit 2020-11-07 14:43:59 +01:00
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
Benjamin Cama
f2a3180cc0 Imported Upstream version 2.1.21 2011-07-07 12:45:05 +02:00