diff --git a/init/systemd-swanctl/strongswan-swanctl.service.in b/init/systemd-swanctl/strongswan-swanctl.service.in index 1b865af47b..e53c0c6ada 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 0bb9d5456d..474284a198 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