Drop PID file when exiting guardian.
authorStefan Schantl <stefan.schantl@ipfire.org>
Wed, 9 Dec 2015 13:48:35 +0000 (14:48 +0100)
committerStefan Schantl <stefan.schantl@ipfire.org>
Wed, 9 Dec 2015 13:48:35 +0000 (14:48 +0100)
Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
guardian

index acbd545..58a0819 100644 (file)
--- a/guardian
+++ b/guardian
@@ -382,6 +382,9 @@ sub Shutdown () {
        # Remove socket file on exit.
        &Guardian::Socket::RemoveSocketFile();
 
+       # Remove pid file on exit.
+       &Guardian::Daemon::RemovePIDFile();
+
        # Sleep for one second to give perl some
        # time to proper clean up everything before
        # exiting.