diff options
| author | ribosome ribosome@31f1291d-b8d6-0310-a050-a5561fc1590b <ribosome ribosome@31f1291d-b8d6-0310-a050-a5561fc1590b@5417fbe8-f217-4b02-8779-1006273d7864> | 2004-05-16 21:26:40 +0000 |
|---|---|---|
| committer | ribosome ribosome@31f1291d-b8d6-0310-a050-a5561fc1590b <ribosome ribosome@31f1291d-b8d6-0310-a050-a5561fc1590b@5417fbe8-f217-4b02-8779-1006273d7864> | 2004-05-16 21:26:40 +0000 |
| commit | 9204bb30abd2d401e4b9fbc4fc18f000b32a8a2b (patch) | |
| tree | 1575f9c6baaeec8c9ac9d37c8edf8c580e9e55e6 /bin/anoperc | |
| parent | 97a04bdcb3d4ee5088517fdf2e5c81cf8936ec68 (diff) | |
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
Diffstat (limited to 'bin/anoperc')
| -rwxr-xr-x | bin/anoperc | 12 |
1 files changed, 6 insertions, 6 deletions
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 |
