From 67deb7ec8cef32eed79f3045bcbb802fccbb6e82 Mon Sep 17 00:00:00 2001 From: Bram Matthys Date: Fri, 4 Jun 2021 09:16:44 +0200 Subject: [PATCH] UnrealIRCd script: restart is now identical to stop+start (:D) --- unrealircd.in | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/unrealircd.in b/unrealircd.in index 49ce74c98..ef03bb40c 100644 --- a/unrealircd.in +++ b/unrealircd.in @@ -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