init: Add Wants= dependencies to systemd units
If no other units have dependencies on network-online.target or syslog.target they might not get initialized resulting in a possibly non-ideal startup order. Closes strongswan/strongswan#2279
This commit is contained in:
committed by
Tobias Brunner
parent
59a4c9c416
commit
bed04baf21
@@ -1,6 +1,7 @@
|
|||||||
[Unit]
|
[Unit]
|
||||||
Description=strongSwan IPsec IKEv1/IKEv2 daemon using ipsec.conf
|
Description=strongSwan IPsec IKEv1/IKEv2 daemon using ipsec.conf
|
||||||
After=syslog.target network-online.target
|
After=syslog.target network-online.target
|
||||||
|
Wants=syslog.target network-online.target
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
ExecStart=@SBINDIR@/@IPSEC_SCRIPT@ start --nofork
|
ExecStart=@SBINDIR@/@IPSEC_SCRIPT@ start --nofork
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
[Unit]
|
[Unit]
|
||||||
Description=strongSwan IPsec IKEv1/IKEv2 daemon using swanctl
|
Description=strongSwan IPsec IKEv1/IKEv2 daemon using swanctl
|
||||||
After=network-online.target
|
After=network-online.target
|
||||||
|
Wants=network-online.target
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
Type=notify
|
Type=notify
|
||||||
|
|||||||
Reference in New Issue
Block a user