Hi,

the 'else' is misplaced. With a running pluto it sets RC=3. The script erroneously prints ""ipsec: pluto is stopped".

Bernhard
diff --git a/initsystems/sysvinit/ipsec.init.in b/initsystems/sysvinit/ipsec.init.in
index 9c760a7..3b44a1b 100755
--- a/initsystems/sysvinit/ipsec.init.in
+++ b/initsystems/sysvinit/ipsec.init.in
@@ -208,9 +208,11 @@ status() {
 	fi
     fi
     if [ -z "${RC}" ]; then
-	[ -f ${lockfile} ] && RC=2
-    else
-	RC=3
+	if [ -f ${lockfile} ]; then
+	    RC=2
+	else
+	    RC=3
+	fi
     fi
     case "${RC}" in
 	0)
_______________________________________________
Swan-dev mailing list
[email protected]
https://lists.libreswan.org/mailman/listinfo/swan-dev

Reply via email to