From dc69fdc2b7c61f68c59cf549eecece456c4e53b7 Mon Sep 17 00:00:00 2001 From: wolfsage Date: Fri, 22 Jun 2007 03:26:07 +0000 Subject: [PATCH] Index: Changes =================================================================== RCS file: /home/cmunk/ircsystems/cvsroot/unreal/Changes,v retrieving revision 1.1.1.1.2.1.2.1.2.2446 diff -u -r1.1.1.1.2.1.2.1.2.2446 Changes --- Changes 21 Jun 2007 19:37:46 -0000 1.1.1.1.2.1.2.1.2.2446 +++ Changes 22 Jun 2007 03:25:21 -0000 @@ -1809,3 +1809,5 @@ a ./Config option. Default is commandsandmodules. Any takers? - Changed logging into not open/close constantly, #0002943. This may leaks fds and cause problems, so its a heads up +- Some minor changes to unreal.in, to fix unreal stop, start, and + restart a bit. --- Changes | 2 ++ unreal.in | 6 +++--- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/Changes b/Changes index a5b1acf74..0335629c4 100644 --- a/Changes +++ b/Changes @@ -1809,3 +1809,5 @@ MOTDs a ./Config option. Default is commandsandmodules. Any takers? - Changed logging into not open/close constantly, #0002943. This may leaks fds and cause problems, so its a heads up +- Some minor changes to unreal.in, to fix unreal stop, start, and + restart a bit. diff --git a/unreal.in b/unreal.in index 7e91eacd8..30b6e0e0d 100644 --- a/unreal.in +++ b/unreal.in @@ -34,7 +34,7 @@ elif [ "$1" = "stop" ] ; then exit 1 fi PID=`cat $PID_FILE` - if [ "`ps -p $PID | wc -l`" == "0" ]; then + if [ "`ps -p $PID | wc -l`" = "1" ]; then echo "UnrealIRCd is not running" rm -f $PID_FILE # Kill stale PID. exit 1 @@ -54,7 +54,7 @@ elif [ "$1" = "rehash" ] ; then exit 1 fi PID=`cat $PID_FILE` - if [ "`ps -p $PID | wc -l`" == "0" ]; then + if [ "`ps -p $PID | wc -l`" = "1" ]; then echo "UnrealIRCd is not running" rm -f $PID_FILE # Kill stale PID. exit 1 @@ -74,7 +74,7 @@ elif [ "$1" = "restart" ] ; then exit 1 fi PID=`cat $PID_FILE` - if [ "`ps -p $PID | wc -l`" == "0" ]; then + if [ "`ps -p $PID | wc -l`" = "1" ]; then echo "UnrealIRCd is not running - Starting." rm -f $PID_FILE # Kill stale PID. exec $0 start