[packages/strongswan] Rel 2; load swanctl configs, too
arekm
arekm at pld-linux.org
Thu Mar 26 13:33:59 CET 2026
commit 9a4d33564b708a5779989feca35e9ee068a293b2
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date: Thu Mar 26 13:33:42 2026 +0100
Rel 2; load swanctl configs, too
strongswan.init | 11 +++++++++--
strongswan.spec | 2 +-
2 files changed, 10 insertions(+), 3 deletions(-)
---
diff --git a/strongswan.spec b/strongswan.spec
index a547b80..b47019e 100644
--- a/strongswan.spec
+++ b/strongswan.spec
@@ -4,7 +4,7 @@
Summary: IPsec-based VPN Solution for Linux
Name: strongswan
Version: 6.0.5
-Release: 1
+Release: 2
License: GPL v2
Group: Networking/Daemons
Source0: http://download.strongswan.org/%{name}-%{version}.tar.bz2
diff --git a/strongswan.init b/strongswan.init
index b3741ae..b02d434 100644
--- a/strongswan.init
+++ b/strongswan.init
@@ -4,11 +4,12 @@
#
# chkconfig: 2345 47 76
#
-# description: strongSwan IPsec IKEv1/IKEv2 daemon using ipsec.conf
+# description: strongSwan IPsec IKEv1/IKEv2 daemon
#
# processname: starter
# pidfile: /var/run/strongswan/starter.charon.pid
# config: /etc/strongswan/ipsec.conf
+# config: /etc/strongswan/swanctl/swanctl.conf
# Source function library
. /etc/rc.d/init.d/functions
@@ -38,7 +39,11 @@ case "$1" in
msg_starting "strongSwan"
daemon /usr/sbin/strongswan start $STRONGSWAN_OPTIONS
RETVAL=$?
- [ $RETVAL -eq 0 ] && touch /var/lock/subsys/strongswan
+ if [ $RETVAL -eq 0 ]; then
+ touch /var/lock/subsys/strongswan
+ show "Loading swanctl configuration"
+ daemon /usr/sbin/swanctl --load-all --noprompt
+ fi
else
msg_already_running "strongSwan"
fi
@@ -63,6 +68,8 @@ case "$1" in
msg_reloading "strongSwan"
/usr/sbin/strongswan reload
RETVAL=$?
+ show "Reloading swanctl configuration"
+ daemon /usr/sbin/swanctl --load-all --noprompt
else
msg_not_running "strongSwan"
RETVAL=7
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/strongswan.git/commitdiff/9a4d33564b708a5779989feca35e9ee068a293b2
More information about the pld-cvs-commit
mailing list