1
0
mirror of https://github.com/unrealircd/unrealircd.git synced 2026-06-12 17:14:46 +02:00
Fixes #0004826: ./unrealircd stop always says unrealircd.pid: No such file

https://bugs.unrealircd.org/view.php?id=4826
This commit is contained in:
netjester
2016-12-29 17:47:11 +00:00
committed by GitHub
parent 9da4c7e5d0
commit 1fc6a0efaf
+3 -1
View File
@@ -63,7 +63,9 @@ elif [ "$1" = "stop" ] ; then
exit 1
fi
sleep 1
kill -9 `cat $PID_FILE` 1>/dev/null 2>&1
if [ -r $PID_FILE ] ; then
kill -9 `cat $PID_FILE` 1>/dev/null 2>&1
fi
elif [ "$1" = "rehash" ] ; then
echo "Rehashing UnrealIRCd"
if [ ! -r $PID_FILE ] ; then