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