Delete auto.pid on shutdown.
This commit is contained in:
1 parent
2cd8831abc
commit
a4317ecec7
1 file changed
+6
@@ -248,6 +248,9 @@ sub signal_TERM
|
|||||||
API::IRC::quit($_, "Caught SIGTERM") foreach (keys %SOCKET);
|
API::IRC::quit($_, "Caught SIGTERM") foreach (keys %SOCKET);
|
||||||
dbug "!!! Caught SIGTERM; terminating...";
|
dbug "!!! Caught SIGTERM; terminating...";
|
||||||
alog "!!! Caught SIGTERM; terminating...";
|
alog "!!! Caught SIGTERM; terminating...";
|
||||||
|
if (-e "$Bin/auto.pid") {
|
||||||
|
`rm $Bin/auto.pid`;
|
||||||
|
}
|
||||||
sleep 1;
|
sleep 1;
|
||||||
exit;
|
exit;
|
||||||
}
|
}
|
||||||
@@ -258,6 +261,9 @@ sub signal_INT
|
|||||||
API::IRC::quit($_, "Caught SIGINT") foreach (keys %SOCKET);
|
API::IRC::quit($_, "Caught SIGINT") foreach (keys %SOCKET);
|
||||||
dbug "!!! Caught SIGINT; terminating...";
|
dbug "!!! Caught SIGINT; terminating...";
|
||||||
alog "!!! Caught SIGINT; terminating...";
|
alog "!!! Caught SIGINT; terminating...";
|
||||||
|
if (-e "$Bin/auto.pid") {
|
||||||
|
`rm $Bin/auto.pid`;
|
||||||
|
}
|
||||||
sleep 1;
|
sleep 1;
|
||||||
exit;
|
exit;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user