X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=.inspircd.inc;h=87a162a31b12699a51a3ee03672e678574694b7d;hb=67cf8f594aa36edfca40511d245626dae258999a;hp=5ac7e84ecec616eb22641e3798c30fcb6858c479;hpb=94eb487064f37fa7bd5bcfd9c2faf8d275ad3725;p=user%2Fhenk%2Fcode%2Finspircd.git 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();