Delete auto.pid on shutdown.

This commit is contained in:
Elijah Perrault committed 2011-01-21 00:14:42 -07:00
1 parent 2cd8831abc
commit a4317ecec7
1 file changed
+6
+6
View File
@@ -248,6 +248,9 @@ sub signal_TERM
API::IRC::quit($_, "Caught SIGTERM") foreach (keys %SOCKET);
dbug "!!! Caught SIGTERM; terminating...";
alog "!!! Caught SIGTERM; terminating...";
if (-e "$Bin/auto.pid") {
`rm $Bin/auto.pid`;
}
sleep 1;
exit;
}
@@ -258,6 +261,9 @@ sub signal_INT
API::IRC::quit($_, "Caught SIGINT") foreach (keys %SOCKET);
dbug "!!! Caught SIGINT; terminating...";
alog "!!! Caught SIGINT; terminating...";
if (-e "$Bin/auto.pid") {
`rm $Bin/auto.pid`;
}
sleep 1;
exit;
}