diff --git a/play zone/daemon.py b/play zone/daemon.py new file mode 100644 index 00000000..52a58e3d --- /dev/null +++ b/play zone/daemon.py @@ -0,0 +1,12 @@ +from time import sleep +from daemonize import Daemonize + +pid = "/tmp/test.pid" + + +def main(): + while True: + sleep(5) + +daemon = Daemonize(app="test_app", pid=pid, action=main) +daemon.start()