aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
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)