spawn deamon in background
This commit is contained in:
parent
760453e202
commit
ce4cec27e2
@ -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()
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user