diff options
| author | Christian Weiske <cweiske@cweiske.de> | 2016-11-10 15:13:51 +0100 |
|---|---|---|
| committer | Christian Weiske <cweiske@cweiske.de> | 2016-11-10 15:13:51 +0100 |
| commit | cbdbbfe1166538f2fc9aefaeed6ce387f25c1255 (patch) | |
| tree | 44dd4f2152572cb0d2747d653d175b6a9e343f9c /bin/stop-worker.php | |
| parent | 31f0bc4f5a980b40ab8d6ebc6cf682e97f59f647 (diff) | |
| download | phinde-cbdbbfe1166538f2fc9aefaeed6ce387f25c1255.tar.gz phinde-cbdbbfe1166538f2fc9aefaeed6ce387f25c1255.zip | |
add command to shut down a worker
Diffstat (limited to 'bin/stop-worker.php')
| -rwxr-xr-x | bin/stop-worker.php | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/bin/stop-worker.php b/bin/stop-worker.php new file mode 100755 index 0000000..48a2fe1 --- /dev/null +++ b/bin/stop-worker.php @@ -0,0 +1,12 @@ +#!/usr/bin/env php +<?php +//stop a single running worker +namespace phinde; +require_once __DIR__ . '/../src/init.php'; + +$gmclient = new \GearmanClient(); +$gmclient->addServer('127.0.0.1'); +$gmclient->doHigh( + $GLOBALS['phinde']['queuePrefix'] . 'phinde_quit', 'none' +); +?> |
