init: Let systemd restart daemons if they get terminated unexpectedly

Fixes #2205.
This commit is contained in:
Tobias Brunner 2017-01-18 13:54:56 +01:00
parent 262bff8bd0
commit 014737dd54
2 changed files with 2 additions and 0 deletions

View File

@ -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

View File

@ -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