strongswan: install strongswan-swanctl systemd service by default.

Matches start-on-boot behaviour of current strongswan.service.

Signed-off-by: Chris Patterson <pattersonc@ainfosec.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Joe MacDonald <joe_macdonald@mentor.com>
This commit is contained in:
Chris Patterson
2015-12-18 15:49:42 -05:00
committed by Joe MacDonald
parent 7d46b08775
commit 1dbb1ff9b1
2 changed files with 23 additions and 0 deletions
@@ -0,0 +1,22 @@
commit 44cbabd8a42bc2a436562ed33fb8c89fa6b75b6e
Author: Chris Patterson <pattersonc@ainfosec.com>
Date: Fri Dec 18 08:31:48 2015 -0500
strongswan-swanctl.service.in: match install used by strongswan.service
Signed-off-by: Chris Patterson <pattersonc@ainfosec.com>
Upstream-Status: Submitted
https://github.com/strongswan/strongswan/pull/25
diff --git a/init/systemd-swanctl/strongswan-swanctl.service.in b/init/systemd-swanctl/strongswan-swanctl.service.in
index 818d352..944101f 100644
--- a/init/systemd-swanctl/strongswan-swanctl.service.in
+++ b/init/systemd-swanctl/strongswan-swanctl.service.in
@@ -7,3 +7,6 @@ Type=notify
ExecStart=@SBINDIR@/charon-systemd
ExecStartPost=@SBINDIR@/swanctl --load-all --noprompt
ExecReload=@SBINDIR@/swanctl --reload
+
+[Install]
+WantedBy=multi-user.target
@@ -10,6 +10,7 @@ DEPENDS = "gmp openssl flex-native flex bison-native"
SRC_URI = "http://download.strongswan.org/strongswan-${PV}.tar.bz2 \
file://fix-funtion-parameter.patch \
file://support-newer-systemd.patch \
file://install-strongswan-swanctl-service.patch \
"
SRC_URI[md5sum] = "fab014be1477ef4ebf9a765e10f8802c"