Skip to content

Commit

Permalink
debian celerybeat init scrip creates pidfile twice. Closes #434t
Browse files Browse the repository at this point in the history
  • Loading branch information
ask committed Oct 28, 2011

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
1 parent 42649db commit cb7442f
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion celery/bin/base.py
Original file line number Diff line number Diff line change
@@ -203,7 +203,7 @@ def _get_default_app(self, *args, **kwargs):
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 changes: 3 additions & 0 deletions contrib/debian/init.d-deprecated/celerybeat
Original file line number Diff line number Diff line change
@@ -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"

0 comments on commit cb7442f

Please sign in to comment.