From 022d09ff44087182763402032e6d9cbc6b25c2b1 Mon Sep 17 00:00:00 2001 From: chrys Date: Wed, 19 Oct 2016 23:53:09 +0200 Subject: [PATCH] get initial daemonize working --- src/fenrir/fenrir-daemon | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/fenrir/fenrir-daemon b/src/fenrir/fenrir-daemon index de7072f5..fef55aa6 100755 --- a/src/fenrir/fenrir-daemon +++ b/src/fenrir/fenrir-daemon @@ -21,6 +21,8 @@ def main(): del app 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()