]> git.ipfire.org Git - thirdparty/openvpn.git/commit
systemd: Enable systemd's auto-restart feature for server profiles
authorDavid Sommerseth <davids@openvpn.net>
Wed, 6 Sep 2017 23:52:02 +0000 (01:52 +0200)
committerDavid Sommerseth <davids@openvpn.net>
Thu, 21 Sep 2017 14:12:29 +0000 (16:12 +0200)
commita4686e99b047081f0ef6f7945450183088464aa5
tree94b7f158d403b49e5bc65a64ba4f1db647200973
parent682e7feac3bd57e6ce7e60504cb4da5c894d0e18
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>
distro/systemd/openvpn-server@.service.in