aboutsummaryrefslogtreecommitdiffstats
path: root/src/ipsec
diff options
context:
space:
mode:
authorMartin Willi <martin@strongswan.org>2008-10-10 06:59:03 +0000
committerMartin Willi <martin@strongswan.org>2008-10-10 06:59:03 +0000
commit88f65cd58953ee96e699327b3cdc32464f602321 (patch)
tree41d9fc9ff201bb36e67a60a80b8f1d8d7a63e92f /src/ipsec
parentb165cfa94546e3eccfec8df84fb20462e71ee0a9 (diff)
downloadstrongswan-88f65cd58953ee96e699327b3cdc32464f602321.tar.bz2
strongswan-88f65cd58953ee96e699327b3cdc32464f602321.tar.xz
use busybox compatible kill
Diffstat (limited to 'src/ipsec')
-rwxr-xr-xsrc/ipsec/ipsec.in8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/ipsec/ipsec.in b/src/ipsec/ipsec.in
index ed2863681..c4e104121 100755
--- a/src/ipsec/ipsec.in
+++ b/src/ipsec/ipsec.in
@@ -183,7 +183,7 @@ reload)
if [ -e $IPSEC_STARTER_PID ]
then
echo "Reloading strongSwan IPsec configuration..." >&2
- kill -s USR1 `cat $IPSEC_STARTER_PID` 2>/dev/null && rc=0
+ kill -USR1 `cat $IPSEC_STARTER_PID` 2>/dev/null && rc=0
else
echo "Reloading strongSwan IPsec failed: starter is not running" >&2
fi
@@ -296,13 +296,13 @@ stop)
kill $spid 2>/dev/null
loop=5
while [ $loop -gt 0 ] ; do
- kill -s 0 $spid 2>/dev/null || break
+ kill -0 $spid 2>/dev/null || break
sleep 1
loop=$(($loop - 1))
done
if [ $loop -eq 0 ]
then
- kill -s KILL $spid 2>/dev/null
+ kill -KILL $spid 2>/dev/null
rm -f $IPSEC_STARTER_PID
fi
fi
@@ -338,7 +338,7 @@ update)
if [ -e $IPSEC_STARTER_PID ]
then
echo "Updating strongSwan IPsec configuration..." >&2
- kill -s HUP `cat $IPSEC_STARTER_PID`
+ kill -HUP `cat $IPSEC_STARTER_PID`
exit 0
else
echo "Updating strongSwan IPsec failed: starter is not running" >&2