init: Let systemd restart daemons if they get terminated unexpectedly
Fixes #2205.
This commit is contained in:
parent
262bff8bd0
commit
014737dd54
|
@ -7,6 +7,7 @@ Type=notify
|
||||||
ExecStart=@SBINDIR@/charon-systemd
|
ExecStart=@SBINDIR@/charon-systemd
|
||||||
ExecStartPost=@SBINDIR@/swanctl --load-all --noprompt
|
ExecStartPost=@SBINDIR@/swanctl --load-all --noprompt
|
||||||
ExecReload=@SBINDIR@/swanctl --reload
|
ExecReload=@SBINDIR@/swanctl --reload
|
||||||
|
Restart=on-abnormal
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
WantedBy=multi-user.target
|
WantedBy=multi-user.target
|
||||||
|
|
|
@ -5,6 +5,7 @@ After=syslog.target network-online.target
|
||||||
[Service]
|
[Service]
|
||||||
ExecStart=@SBINDIR@/@IPSEC_SCRIPT@ start --nofork
|
ExecStart=@SBINDIR@/@IPSEC_SCRIPT@ start --nofork
|
||||||
StandardOutput=syslog
|
StandardOutput=syslog
|
||||||
|
Restart=on-abnormal
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
WantedBy=multi-user.target
|
WantedBy=multi-user.target
|
||||||
|
|
Loading…
Reference in New Issue