summaryrefslogtreecommitdiff
path: root/debian/patches/03_systemd-service.patch
diff options
context:
space:
mode:
authorRomain Francoise <rfrancoise@debian.org>2014-07-26 17:56:25 +0200
committerRomain Francoise <rfrancoise@debian.org>2014-07-26 17:56:25 +0200
commit1e90ef71efd5f3e487b48cd20e0eff94dbe6b822 (patch)
tree1dc9412bc18c7250c563c92fa15843b55cdc1b2e /debian/patches/03_systemd-service.patch
parent6e408eb31340230d4c57da34aeab640098c78d1a (diff)
downloadvyos-strongswan-1e90ef71efd5f3e487b48cd20e0eff94dbe6b822.tar.gz
vyos-strongswan-1e90ef71efd5f3e487b48cd20e0eff94dbe6b822.zip
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.)
Diffstat (limited to 'debian/patches/03_systemd-service.patch')
-rw-r--r--debian/patches/03_systemd-service.patch3
1 files changed, 2 insertions, 1 deletions
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