Explorar el Código

debian celerybeat init scrip creates pidfile twice. Closes #434t

Ask Solem hace 13 años
padre
commit
cb7442fbaf
Se han modificado 2 ficheros con 4 adiciones y 1 borrados
  1. 1 1
      celery/bin/base.py
  2. 3 0
      contrib/debian/init.d-deprecated/celerybeat

+ 1 - 1
celery/bin/base.py

@@ -203,7 +203,7 @@ class Command(object):
         return Celery(*args, **kwargs)
 
 
-def daemon_options(default_pidfile, default_logfile=None):
+def daemon_options(default_pidfile=None, default_logfile=None):
     return (
         Option('-f', '--logfile', default=default_logfile,
                action="store", dest="logfile",

+ 3 - 0
contrib/debian/init.d-deprecated/celerybeat

@@ -110,6 +110,9 @@ if [ -n "$2" ]; then
     CELERYBEAT_OPTS="$CELERYBEAT_OPTS $2"
 fi
 
+# Issue #434
+CELERYBEAT_OPTS="$CELERYBEAT_OPTS --pidfile="
+
 # Extra start-stop-daemon options, like user/group.
 if [ -n "$CELERYBEAT_USER" ]; then
     DAEMON_OPTS="$DAEMON_OPTS --chuid $CELERYBEAT_USER"