]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - .inspircd.inc
Change error message so it's not 'out of range' when a tag doesn't exist
[user/henk/code/inspircd.git] / .inspircd.inc
index 67daff2fe28aa830eb577581dafae034907bcdee..cca512a97734aa2a495ad58a0ba8031e04d9d6f2 100644 (file)
@@ -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;
 }
-