From 1b7c683a32c62b6e08ad7bf5af39b9f4edd634f3 Mon Sep 17 00:00:00 2001 From: Romain Francoise Date: Sat, 4 Apr 2015 18:01:26 +0200 Subject: Fix handling of ipsec name under systemd (#781209) We used to make the old ipsec name, which corresponds to the sysvinit init script, available via an Alias directive in the systemd service file (which follows upstream and is named strongswan.service). Unfortunately this results in a situation where the strongswan-starter postinst calls invoke-rc.d using the ipsec name before the service has been installed, and thus uses the sysvinit script instead of systemd's native unit. This results in some confusion later when the unit gets installed. To avoid this, ship a symlink in the package, this way the ipsec name is available as soon as the package has been unpacked. Thanks to Michael Biebl for the suggestion. --- debian/patches/03_systemd-service.patch | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'debian/patches') diff --git a/debian/patches/03_systemd-service.patch b/debian/patches/03_systemd-service.patch index 6609542c8..b1d1c874d 100644 --- a/debian/patches/03_systemd-service.patch +++ b/debian/patches/03_systemd-service.patch @@ -1,6 +1,6 @@ --- a/init/systemd/strongswan.service.in +++ b/init/systemd/strongswan.service.in -@@ -1,10 +1,12 @@ +@@ -1,9 +1,10 @@ [Unit] Description=strongSwan IPsec IKEv1/IKEv2 daemon using ipsec.conf -After=syslog.target @@ -12,5 +12,3 @@ StandardOutput=syslog [Install] - WantedBy=multi-user.target -+Alias=ipsec.service -- cgit v1.2.3