Changing pid check logic

This commit is contained in:
tresbailey
2013-08-06 13:51:59 -04:00
parent 4f01706dbb
commit 7926bb1d1f
2 changed files with 1 additions and 1 deletions
+1 -1
View File
@@ -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
View File