aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAndreas Steffen <andreas.steffen@strongswan.org>2007-12-12 14:54:28 +0000
committerAndreas Steffen <andreas.steffen@strongswan.org>2007-12-12 14:54:28 +0000
commit6fa3dcba3c3c112bd4a9a47c68d70a3a6e7f6957 (patch)
tree81a39db5b8cf1d138074592a32a16d3b997c0952 /src
parent4b403e7672a152c547492b6986bb2e52f10af9ec (diff)
downloadstrongswan-6fa3dcba3c3c112bd4a9a47c68d70a3a6e7f6957.tar.bz2
strongswan-6fa3dcba3c3c112bd4a9a47c68d70a3a6e7f6957.tar.xz
aligned error messages
Diffstat (limited to 'src')
-rwxr-xr-xsrc/ipsec/ipsec.in10
1 files changed, 7 insertions, 3 deletions
diff --git a/src/ipsec/ipsec.in b/src/ipsec/ipsec.in
index 54e40a465..e304d2a33 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
;;