git.cweiske.de
/
phinde.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Do not use STDOUT and STDERR constants
[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
?>