Fix relative pidfile path

Closes #47
This commit is contained in:
Ilya Otyutskiy
2016-03-18 23:20:13 +03:00
parent 11a2be2979
commit da54a00b34

View File

@@ -44,7 +44,7 @@ class Daemonize(object):
user=None, group=None, verbose=False, logger=None,
foreground=False, chdir="/"):
self.app = app
self.pid = pid
self.pid = os.path.abspath(pid)
self.action = action
self.keep_fds = keep_fds or []
self.privileged_action = privileged_action or (lambda: ())