X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=.inspircd.inc;h=cca512a97734aa2a495ad58a0ba8031e04d9d6f2;hb=d2afbfcf42cb4599f07baea345dcc97a99db3aba;hp=67daff2fe28aa830eb577581dafae034907bcdee;hpb=a3962aa85ac61180ea8f910fa55b28e56030b092;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/.inspircd.inc b/.inspircd.inc index 67daff2fe..cca512a97 100644 --- a/.inspircd.inc +++ b/.inspircd.inc @@ -84,7 +84,6 @@ sub start { if (getstatus() == 1) { print "InspIRCd is already running.\n"; return 0; } # If we are still alive here.. Try starting the IRCd.. system("$binpath/$executable"); - sleep 2; return 1; } @@ -92,7 +91,7 @@ sub debug { # 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.. - system("gdb --args $binpath/$executable -nofork -debug"); + system("gdb --command=.gdbargs --args $binpath/$executable -nofork -debug"); } @@ -102,7 +101,6 @@ sub stop { my $pid = getprocessid(); print "Stopping InspIRCd...\n"; system("kill -TERM $pid >/dev/null 2>&1"); - sleep 2; if (getstatus() == 1) { print "InspIRCd not dying Quietly -- Forcing Kill\n"; @@ -198,4 +196,3 @@ sub getprocessid { close PIDFILE; return $pid; } -