get initial daemonize working
This commit is contained in:
parent
553317d34c
commit
022d09ff44
@ -21,6 +21,8 @@ def main():
|
|||||||
del app
|
del app
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
daemon = Daemonize(app="fenrir-daemon", pid=pidFile, action=main)
|
# for debug in foreground
|
||||||
|
#daemon = Daemonize(app="fenrir-daemon", pid=pidFile, action=main, foreground=True,chdir=os.path.dirname(os.path.realpath(__main__.__file__)))
|
||||||
|
daemon = Daemonize(app="fenrir-daemon", pid=pidFile, action=main, chdir=os.path.dirname(os.path.realpath(__main__.__file__)))
|
||||||
daemon.start()
|
daemon.start()
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user