mirror of
https://github.com/unrealircd/unrealircd.git
synced 2026-06-12 16:54:46 +02:00
UnrealIRCd script: restart is now identical to stop+start (:D)
This commit is contained in:
+1
-11
@@ -97,17 +97,7 @@ elif [ "$1" = "rehash" ] ; then
|
||||
fi
|
||||
elif [ "$1" = "restart" ] ; then
|
||||
echo "Restarting UnrealIRCd"
|
||||
if [ ! -r $PID_FILE ] ; then
|
||||
echo "WARNING: UnrealIRCd was not running"
|
||||
else
|
||||
kill -15 `cat $PID_FILE`
|
||||
if [ "$?" != 0 ]; then
|
||||
echo "WARNING: UnrealIRCd was not running"
|
||||
else
|
||||
sleep 1
|
||||
kill -9 `cat $PID_FILE` 1>/dev/null 2>&1
|
||||
fi
|
||||
fi
|
||||
$0 stop
|
||||
$0 start
|
||||
elif [ "$1" = "croncheck" ] ; then
|
||||
if [ -r $PID_FILE ] ; then
|
||||
|
||||
Reference in New Issue
Block a user