aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAndreas Steffen <andreas.steffen@strongswan.org>2008-08-01 12:04:35 +0000
committerAndreas Steffen <andreas.steffen@strongswan.org>2008-08-01 12:04:35 +0000
commit7ebac6728bb0f6025ec8c7980d2a646cdcb79f86 (patch)
tree1d0b2438cccb78a986a2cc6059489dbe8cc81e61 /src
parent573fd9ce03246051ba0584ea55cbee8bd0447ec5 (diff)
downloadstrongswan-7ebac6728bb0f6025ec8c7980d2a646cdcb79f86.tar.bz2
strongswan-7ebac6728bb0f6025ec8c7980d2a646cdcb79f86.tar.xz
Redhat/Fedora requires var/lock/subsys/ipsec for runlevel changes
Diffstat (limited to 'src')
-rwxr-xr-xsrc/ipsec/ipsec.in6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/ipsec/ipsec.in b/src/ipsec/ipsec.in
index 8e5bdc459..05db364f3 100755
--- a/src/ipsec/ipsec.in
+++ b/src/ipsec/ipsec.in
@@ -243,6 +243,9 @@ secrets)
;;
start)
shift
+ if [ -d /var/lock/subsys ]; then
+ touch /var/lock/subsys/ipsec
+ fi
exec $IPSEC_STARTER "$@"
;;
status|statusall)
@@ -306,6 +309,9 @@ stop)
else
echo "Stopping strongSwan IPsec failed: starter is not running" >&2
fi
+ if [ -d /var/lock/subsys ]; then
+ rm -f /var/lock/subsys/ipsec
+ fi
exit 0
;;
up)