From 9204bb30abd2d401e4b9fbc4fc18f000b32a8a2b Mon Sep 17 00:00:00 2001 From: "ribosome ribosome@31f1291d-b8d6-0310-a050-a5561fc1590b" Date: Sun, 16 May 2004 21:26:40 +0000 Subject: BUILD : 1.7.3 (109) BUGS : NOTES : make install now moves anoperc to bin, also typos and one bug in anoperc fixed (ps ux changed to ps auxw which was failing when paths were too long to fit on the screen) git-svn-id: svn://svn.anope.org/anope/trunk@109 31f1291d-b8d6-0310-a050-a5561fc1590b git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@85 5417fbe8-f217-4b02-8779-1006273d7864 --- bin/anoperc | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'bin') diff --git a/bin/anoperc b/bin/anoperc index 76949da20..bc0704f12 100755 --- a/bin/anoperc +++ b/bin/anoperc @@ -31,7 +31,7 @@ fi PID=`cat $ANOPEBIN$PIDFILE` -if [ ! `ps ux | grep $ANOPROG | grep $PID | grep -v -c grep` ] ; then +if [ ! `ps auxw | grep $ANOPROG | grep $PID | grep -v -c grep` ] ; then echo "Warning: Anope is not currently running" exit 1 fi @@ -51,7 +51,7 @@ if [ "$1" = "start" ] ; then if [ -f $ANOPEBIN$PIDFILE ] ; then PID=`cat $ANOPEBIN$PIDFILE` - if [ `ps ux | grep $ANOPROG | grep $PID | grep -v -c grep` = 1 ] ; then + if [ `ps auxw | grep $ANOPROG | grep $PID | grep -v -c grep` = 1 ] ; then echo "Warning! Anope is already running" exit 1 fi @@ -61,7 +61,7 @@ fi $ANOPEBIN$ANOPROG $* sleep 1 if [ ! -f $ANOPEBIN$PIDFILE ] ; then - echo "Unfortunatly it seems Anope did not start successfully" + echo "Unfortunately it seems Anope did not start successfully" echo "This error has been logged in your Anope Log file" echo "Located in "$ANOPEBIN"logs/" echo "This may help you diagnose the problem" @@ -69,8 +69,8 @@ fi exit 1 fi PID=`cat $ANOPEBIN$PIDFILE` - if [ ! `ps ux | grep $ANOPROG | grep $PID | grep -v -c grep` ] ; then - echo "Unfortunatly it seems Anope did not start successfully" + if [ ! `ps auxw | grep $ANOPROG | grep $PID | grep -v -c grep` ] ; then + echo "Unfortunately it seems Anope did not start successfully" echo "This error has been logged in your Anope Log file" echo "Located in "$ANOPEBIN"logs/" echo "This may help you diagnose the problem" @@ -86,7 +86,7 @@ elif [ "$1" = "stop" ] ; then elif [ "$1" = "status" ] ; then if [ -f $ANOPEBIN$PIDFILE ] ; then PID=`cat $ANOPEBIN$PIDFILE` - if [ `ps ux | grep $ANOPROG | grep $PID | grep -v -c grep` = 1 ] ; then + if [ `ps auxw | grep $ANOPROG | grep $PID | grep -v -c grep` = 1 ] ; then echo "Anope is currently running" exit 1 fi -- cgit