From: Andreas Steffen Date: Wed, 12 Dec 2007 14:54:28 +0000 (-0000) Subject: aligned error messages X-Git-Tag: 4.1.10~19 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6fa3dcba3c3c112bd4a9a47c68d70a3a6e7f6957;p=thirdparty%2Fstrongswan.git aligned error messages --- diff --git a/src/ipsec/ipsec.in b/src/ipsec/ipsec.in index 54e40a465f..e304d2a330 100755 --- a/src/ipsec/ipsec.in +++ b/src/ipsec/ipsec.in @@ -16,6 +16,10 @@ # # RCSID $Id$ +# define a minimum PATH environment in case it is not set +PATH="/sbin:/bin:/usr/sbin:/usr/bin" +export PATH + # name and version of the ipsec implementation IPSEC_NAME="@IPSEC_NAME@" IPSEC_VERSION="U@IPSEC_VERSION@/K`uname -r`" @@ -166,7 +170,7 @@ reload) echo "Reloading strongSwan IPsec configuration..." >&2 kill -s USR1 `cat $IPSEC_STARTER_PID` 2>/dev/null && rc=0 else - echo "ipsec starter is not running" >&2 + echo "Reloading strongSwan IPsec failed: starter is not running" >&2 fi exit "$rc" ;; @@ -285,7 +289,7 @@ stop) fi fi else - echo "ipsec starter is not running" >&2 + echo "Stopping strongSwan IPsec failed: starter is not running" >&2 fi exit 0 ;; @@ -316,7 +320,7 @@ update) kill -s HUP `cat $IPSEC_STARTER_PID` exit 0 else - echo "ipsec starter is not running" >&2 + echo "Updating strongSwan IPsec failed: starter is not running" >&2 exit 7 fi ;;