summaryrefslogtreecommitdiff
path: root/init/systemd/strongswan.service.in
diff options
context:
space:
mode:
Diffstat (limited to 'init/systemd/strongswan.service.in')
-rw-r--r--init/systemd/strongswan.service.in3
1 files changed, 2 insertions, 1 deletions
diff --git a/init/systemd/strongswan.service.in b/init/systemd/strongswan.service.in
index 49c1cd0bf..474284a19 100644
--- a/init/systemd/strongswan.service.in
+++ b/init/systemd/strongswan.service.in
@@ -1,10 +1,11 @@
[Unit]
Description=strongSwan IPsec IKEv1/IKEv2 daemon using ipsec.conf
-After=syslog.target network.target
+After=syslog.target network-online.target
[Service]
ExecStart=@SBINDIR@/@IPSEC_SCRIPT@ start --nofork
StandardOutput=syslog
+Restart=on-abnormal
[Install]
WantedBy=multi-user.target