0
0
mirror of https://github.com/OpenVPN/openvpn.git synced 2024-09-20 03:52:28 +02:00
openvpn/distro/systemd
David Sommerseth a4686e99b0
systemd: Enable systemd's auto-restart feature for server profiles
Systemd supervises services it has started and can act upon unexpected
scenarios.  This change will restart OpenVPN after 5 seconds if the OpenVPN
process exits unexpectedly.

The on-failure mode is the recommended mode by upstream systemd.

This change have been tested on a test server for some month, and it
works indeed as intended when provoking the OpenVPN process to stop.

Signed-off-by: David Sommerseth <davids@openvpn.net>
Acked-by: David Sommerseth <davids@openvpn.net>
Message-Id: <20170906235202.26551-1-davids@openvpn.net>
URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg15370.html
Signed-off-by: David Sommerseth <davids@openvpn.net>
2017-09-21 16:12:29 +02:00
..
Makefile.am systemd: Do not race on RuntimeDirectory 2017-01-25 19:40:16 +01:00
openvpn-client@.service.in systemd: Ensure systemd shuts down OpenVPN in a proper way 2017-09-21 15:02:06 +02:00
openvpn-server@.service.in systemd: Enable systemd's auto-restart feature for server profiles 2017-09-21 16:12:29 +02:00
tmpfiles-openvpn.conf systemd: Do not race on RuntimeDirectory 2017-01-25 19:40:16 +01:00