summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorom <om@e03df62e-2008-0410-955e-edbf42e46eb7>2006-08-12 13:43:42 +0000
committerom <om@e03df62e-2008-0410-955e-edbf42e46eb7>2006-08-12 13:43:42 +0000
commitbc14912c0cce02f6cdd94352935d1ae123a5f9c0 (patch)
tree04699d1d4320ebe29aad706ca3a015938b89d067
parentff5376b7b682c98c1857c58696db5f8ed4d39b18 (diff)
Complain if we can't find the binary
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4909 e03df62e-2008-0410-955e-edbf42e46eb7
-rw-r--r--.inspircd.inc12
1 files changed, 11 insertions, 1 deletions
diff --git a/.inspircd.inc b/.inspircd.inc
index 5ac7e84ec..87a162a31 100644
--- a/.inspircd.inc
+++ b/.inspircd.inc
@@ -88,6 +88,8 @@ sub start {
# Check to see its not 'running' already.
if (getstatus() == 1) { print "InspIRCd is already running.\n"; return 0; }
# If we are still alive here.. Try starting the IRCd..
+ print "$binpath/$executable doesn't exist\n" and return 0 unless(-e "$binpath/$executable");
+
system("$binpath/$executable");
return 1;
}
@@ -95,7 +97,9 @@ sub start {
sub debug {
# Check to see its not 'running' already.
if (getstatus() == 1) { print "InspIRCd is already running.\n"; return 0; }
-
+
+ print "$binpath/$executable doesn't exist\n" and return 0 unless(-e "$binpath/$executable");
+
# Check we have gdb
checkgdb();
@@ -108,6 +112,8 @@ sub screendebug
# Check to see its not 'running' already.
if (getstatus() == 1) { print "InspIRCd is already running.\n"; return 0; }
+ print "$binpath/$executable doesn't exist\n" and return 0 unless(-e "$binpath/$executable");
+
#Check we have gdb
checkgdb();
checkscreen();
@@ -123,6 +129,8 @@ sub valdebug
# Check to see its not 'running' already.
if (getstatus() == 1) { print "InspIRCd is already running.\n"; return 0; }
+ print "$binpath/$executable doesn't exist\n" and return 0 unless(-e "$binpath/$executable");
+
# Check we have valgrind and gdb
checkvalgrind();
checkgdb();
@@ -138,6 +146,8 @@ sub screenvaldebug
# Check to see its not 'running' already.
if (getstatus() == 1) { print "InspIRCd is already running.\n"; return 0; }
+ print "$binpath/$executable doesn't exist\n" and return 0 unless(-e "$binpath/$executable");
+
#Check we have gdb
checkvalgrind();
checkgdb();