Permalink
Browse files

Fix luigid when called with --background and without --logdir

  • Loading branch information...
1 parent 5b804e5 commit 83add4c6e144e795bd84fcbb632cf2c992082077 Steven Willis committed Feb 19, 2014
Showing with 3 additions and 1 deletion.
  1. +3 −1 luigi/process.py
View
@@ -66,8 +66,10 @@ def _server_already_running(pidfile):
return False
-def daemonize(cmd, pidfile=None, logdir="/var/log/luigi"):
+def daemonize(cmd, pidfile=None, logdir=None):
import daemon
+
+ logdir = logdir or "/var/log/luigi"
if not os.path.exists(logdir):
os.makedirs(logdir)

0 comments on commit 83add4c

Please sign in to comment.