cleanup move demo application to play zone
This commit is contained in:
parent
022d09ff44
commit
60d4a74a75
12
play zone/daemon.py
Normal file
12
play zone/daemon.py
Normal 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()
|
Loading…
Reference in New Issue
Block a user