diff --git a/bin/control b/bin/control index fb147ed..d0da0d5 100755 --- a/bin/control +++ b/bin/control @@ -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 diff --git a/etc/celeryd.pid b/etc/celeryd.pid new file mode 100644 index 0000000..e69de29