aboutsummaryrefslogtreecommitdiffstats
path: root/init
diff options
context:
space:
mode:
authorTobias Brunner <tobias@strongswan.org>2017-01-18 13:54:56 +0100
committerTobias Brunner <tobias@strongswan.org>2017-01-25 15:10:57 +0100
commit014737dd545495d941d096addd01e24c5c7933f9 (patch)
treefae37a7149ac047081735c3c668d90acf33e9ab1 /init
parent262bff8bd0520b960477a858eabaeb4bbca4748e (diff)
downloadstrongswan-014737dd545495d941d096addd01e24c5c7933f9.tar.bz2
strongswan-014737dd545495d941d096addd01e24c5c7933f9.tar.xz
init: Let systemd restart daemons if they get terminated unexpectedly
Fixes #2205.
Diffstat (limited to 'init')
-rw-r--r--init/systemd-swanctl/strongswan-swanctl.service.in1
-rw-r--r--init/systemd/strongswan.service.in1
2 files changed, 2 insertions, 0 deletions
diff --git a/init/systemd-swanctl/strongswan-swanctl.service.in b/init/systemd-swanctl/strongswan-swanctl.service.in
index 1b865af47..e53c0c6ad 100644
--- a/init/systemd-swanctl/strongswan-swanctl.service.in
+++ b/init/systemd-swanctl/strongswan-swanctl.service.in
@@ -7,6 +7,7 @@ Type=notify
ExecStart=@SBINDIR@/charon-systemd
ExecStartPost=@SBINDIR@/swanctl --load-all --noprompt
ExecReload=@SBINDIR@/swanctl --reload
+Restart=on-abnormal
[Install]
WantedBy=multi-user.target
diff --git a/init/systemd/strongswan.service.in b/init/systemd/strongswan.service.in
index 0bb9d5456..474284a19 100644
--- a/init/systemd/strongswan.service.in
+++ b/init/systemd/strongswan.service.in
@@ -5,6 +5,7 @@ After=syslog.target network-online.target
[Service]
ExecStart=@SBINDIR@/@IPSEC_SCRIPT@ start --nofork
StandardOutput=syslog
+Restart=on-abnormal
[Install]
WantedBy=multi-user.target