mirror of
https://github.com/unrealircd/unrealircd.git
synced 2026-07-06 19:03:13 +02:00
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.
This commit is contained in:
@@ -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.
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user