cleanup move demo application to play zone

This commit is contained in:
chrys 2016-10-19 23:56:53 +02:00
parent 022d09ff44
commit 60d4a74a75

12
play zone/daemon.py Normal file
View File

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