From: Matteo Carnelos Date: Thu, 6 Jun 2024 13:54:11 +0000 (+0200) Subject: init: Add `Wants=` dependencies to systemd units X-Git-Tag: android-2.5.2~1 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=bed04baf21bb4d9c04c306613d960f176460434e;p=thirdparty%2Fstrongswan.git 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 --- diff --git a/init/systemd-starter/strongswan-starter.service.in b/init/systemd-starter/strongswan-starter.service.in index 6a0672352d..6f0c40cc11 100644 --- a/init/systemd-starter/strongswan-starter.service.in +++ b/init/systemd-starter/strongswan-starter.service.in @@ -1,6 +1,7 @@ [Unit] Description=strongSwan IPsec IKEv1/IKEv2 daemon using ipsec.conf After=syslog.target network-online.target +Wants=syslog.target network-online.target [Service] ExecStart=@SBINDIR@/@IPSEC_SCRIPT@ start --nofork diff --git a/init/systemd/strongswan.service.in b/init/systemd/strongswan.service.in index 87ad0c905d..c23c05ea0f 100644 --- a/init/systemd/strongswan.service.in +++ b/init/systemd/strongswan.service.in @@ -1,6 +1,7 @@ [Unit] Description=strongSwan IPsec IKEv1/IKEv2 daemon using swanctl After=network-online.target +Wants=network-online.target [Service] Type=notify