Browse Source

Debian init: command should not run in subshell (refs #163)

Lukas Linhart 15 năm trước cách đây
mục cha
commit
e27aa101ae
1 tập tin đã thay đổi với 2 bổ sung2 xóa
  1. 2 2
      contrib/debian/init.d/celeryd

+ 2 - 2
contrib/debian/init.d/celeryd

@@ -140,7 +140,7 @@ stop_worker () {
                            --quiet \
                            $* \
                            --pidfile $CELERYD_PID_FILE"
-    if `$cmd`; then
+    if $cmd; then
         log_end_msg 0
     else
         log_end_msg 1
@@ -156,7 +156,7 @@ start_worker () {
                            $* \
                            --pidfile $CELERYD_PID_FILE
                            --exec $CELERYD -- $CELERYD_OPTS"
-    if `$cmd`; then
+    if $cmd; then
         log_end_msg 0
     else
         log_end_msg 1