get initial daemonize working

This commit is contained in:
chrys 2016-10-19 23:53:09 +02:00
parent 553317d34c
commit 022d09ff44

View File

@ -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()