summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
Diffstat (limited to 'bin')
-rwxr-xr-xbin/anoperc9
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"