1
0
mirror of https://github.com/unrealircd/unrealircd.git synced 2026-06-12 17:14:46 +02:00

(interim) fix, not worth mentioning

This commit is contained in:
Bram Matthys
2010-10-22 13:08:05 +00:00
parent e089980d2a
commit 73c2f8174d
+12
View File
@@ -29,12 +29,24 @@ if [ "$1" = "start" ] ; then
fi
elif [ "$1" = "stop" ] ; then
echo "Stopping UnrealIRCd"
if [ ! -r $PID_FILE ] ; then
echo "ERROR: UnrealIRCd is not running"
exit 1
fi
kill -9 `cat $PID_FILE`
elif [ "$1" = "rehash" ] ; then
echo "Rehashing UnrealIRCd"
if [ ! -r $PID_FILE ] ; then
echo "ERROR: UnrealIRCd is not running"
exit 1
fi
kill -1 `cat $PID_FILE`
elif [ "$1" = "restart" ] ; then
echo "Restarting UnrealIRCd"
if [ ! -r $PID_FILE ] ; then
echo "ERROR: UnrealIRCd is not running"
exit 1
fi
kill -2 `cat $PID_FILE`
elif [ "$1" = "mkpasswd" ] ; then
@BINDIR@ -P $2 $3