From 1e90ef71efd5f3e487b48cd20e0eff94dbe6b822 Mon Sep 17 00:00:00 2001 From: Romain Francoise Date: Sat, 26 Jul 2014 17:56:25 +0200 Subject: Use After=network.target Primarily because otherwise the network may go down before charon gets the opportunity to send deletes on exit, and it matches what the old init script did. Note that in Debian, network.target apparently runs after ifup so the network is in most cases really up, so we don't need network-online.target. (And charon uses rtnetlink to get notified of changes anyway.) --- debian/patches/03_systemd-service.patch | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'debian/patches/03_systemd-service.patch') diff --git a/debian/patches/03_systemd-service.patch b/debian/patches/03_systemd-service.patch index bcf581295..d118590e2 100644 --- a/debian/patches/03_systemd-service.patch +++ b/debian/patches/03_systemd-service.patch @@ -1,9 +1,10 @@ --- a/init/systemd/strongswan.service.in +++ b/init/systemd/strongswan.service.in -@@ -1,10 +1,11 @@ +@@ -1,10 +1,12 @@ [Unit] Description=strongSwan IPsec -After=syslog.target ++After=network.target [Service] ExecStart=@SBINDIR@/@IPSEC_SCRIPT@ start --nofork -- cgit v1.2.3