]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - scripts/queuedaemon.php
Control channel for queue daemons to request graceful shutdown, restart, or update...
[quix0rs-gnu-social.git] / scripts / queuedaemon.php
index bedd14b1a3fbce867534e2c3a0eeb8e4857ce52c..c2e2351c3910e307331303c0509e30692f89b012 100755 (executable)
@@ -115,7 +115,7 @@ class QueueDaemon extends SpawningDaemon
 
         $this->log(LOG_INFO, 'terminating normally');
 
-        return true;
+        return $master->respawn ? self::EXIT_RESTART : self::EXIT_SHUTDOWN;
     }
 }