diff options
| author | ribosome ribosome@31f1291d-b8d6-0310-a050-a5561fc1590b <ribosome ribosome@31f1291d-b8d6-0310-a050-a5561fc1590b@5417fbe8-f217-4b02-8779-1006273d7864> | 2004-05-02 10:08:56 +0000 |
|---|---|---|
| committer | ribosome ribosome@31f1291d-b8d6-0310-a050-a5561fc1590b <ribosome ribosome@31f1291d-b8d6-0310-a050-a5561fc1590b@5417fbe8-f217-4b02-8779-1006273d7864> | 2004-05-02 10:08:56 +0000 |
| commit | 7250a369ab2f5f1980050b0f4cee251ad64ad009 (patch) | |
| tree | 5aa8a600dd66090e5afefaaef0335d6aaa1e196a /bin | |
| parent | ee1ca39543172236e40ea98e88e9be6bd1fd0d24 (diff) | |
BUILD : 1.7.2 (79) BUGS : NOTES : Added check to anoperc to see if paths work, and fixed one grammar error
git-svn-id: svn://svn.anope.org/anope/trunk@79 31f1291d-b8d6-0310-a050-a5561fc1590b
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@55 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'bin')
| -rwxr-xr-x | bin/anoperc | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/bin/anoperc b/bin/anoperc index 1b2a4a803..76949da20 100755 --- a/bin/anoperc +++ b/bin/anoperc @@ -15,7 +15,7 @@ ANOPEBIN="" ANOPROG="services" # SCRIPT VERSION NUMBER (DO NOT ALTER) -ARCVERSION="1.0" +ARCVERSION="1.1" ################################################ @@ -42,6 +42,11 @@ if [ "$ANOPEBIN" = "" ] ; then exit 1 fi +if [ ! -f $ANOPEBIN$ANOPROG ] ; then + echo "Error: $ANOPEBIN$ANOPROG cannot be accessed" + exit 1 +fi + if [ "$1" = "start" ] ; then if [ -f $ANOPEBIN$PIDFILE ] ; then @@ -116,7 +121,7 @@ elif [ "$1" = "help" ] ; then echo " For a list of type $0 $1 paramlist" echo "$0 stop Shutdown Anope" echo "$0 status Show Anope's Status" - echo "$0 restart Restart Anope (Databases will be saved" + echo "$0 restart Restart Anope (Databases will be saved)" echo "$0 rehash Rehash Configuration and Save Databases" echo "$0 version Return Anope Version and Build Information" echo "$0 help Show this help menu" |
