mirror of
https://github.com/wassname/openshift-celery-cartridge.git
synced 2026-06-27 16:10:05 +08:00
Changing pid check logic
This commit is contained in:
+1
-1
@@ -10,7 +10,7 @@ function start {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function stop {
|
function stop {
|
||||||
if ps `cat etc/celeryd.pid` > /dev/null
|
if ps -p `cat etc/celeryd.pid` > /dev/null 2>$1
|
||||||
then
|
then
|
||||||
kill -9 `cat etc/celeryd.pid`
|
kill -9 `cat etc/celeryd.pid`
|
||||||
else
|
else
|
||||||
|
|||||||
Reference in New Issue
Block a user