Permalink
Browse files

Beat attempts to drop privileges twice with --detach. Closes #1708

  • Loading branch information...
ask committed Nov 28, 2013
1 parent 9f7544f commit 90e30b2447c209886acea84224d932fe84f6959c
Showing with 2 additions and 1 deletion.
  1. +2 −1 celery/bin/beat.py
View
@@ -65,7 +65,8 @@ class beat(Command):
def run(self, detach=False, logfile=None, pidfile=None, uid=None,
gid=None, umask=None, working_directory=None, **kwargs):
maybe_drop_privileges(uid=uid, gid=gid)
if not detach:
maybe_drop_privileges(uid=uid, gid=gid)
workdir = working_directory
kwargs.pop('app', None)
beat = partial(self.app.Beat,

0 comments on commit 90e30b2

Please sign in to comment.