spawn deamon in background

This commit is contained in:
chrys 2018-05-17 22:21:50 +02:00
parent 760453e202
commit ce4cec27e2

View File

@ -22,7 +22,7 @@ def main():
if __name__ == "__main__":
# for debug in foreground
daemon = Daemonize(app="fenrir-daemon", pid=pidFile, action=main, foreground=True,chdir=fenrirPath)
#daemon = Daemonize(app="fenrir-daemon", pid=pidFile, action=main, chdir=fenrirPath)
#daemon = Daemonize(app="fenrir-daemon", pid=pidFile, action=main, foreground=True,chdir=fenrirPath)
daemon = Daemonize(app="fenrir-daemon", pid=pidFile, action=main, chdir=fenrirPath)
daemon.start()