document systemd service setup
[phinde.git] / bin / stop-worker.php
1 #!/usr/bin/env php
2 <?php
3 //stop a single running worker
4 namespace phinde;
5 require_once __DIR__ . '/../src/init.php';
6
7 $gmclient = new \GearmanClient();
8 $gmclient->addServer('127.0.0.1');
9 $gmclient->doHigh(
10     $GLOBALS['phinde']['queuePrefix'] . 'phinde_quit', 'none'
11 );
12 ?>