remove weird daemon mod
This commit is contained in:
parent
5fe61b6a41
commit
213abbb14d
|
@ -1 +0,0 @@
|
||||||
python-daemon==3.0.1
|
|
|
@ -1,5 +1,4 @@
|
||||||
import http.client
|
import http.client
|
||||||
import daemon
|
|
||||||
from time import sleep
|
from time import sleep
|
||||||
from datetime import datetime
|
from datetime import datetime
|
||||||
|
|
||||||
|
@ -50,7 +49,3 @@ def monitor():
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
print("executing as normal script")
|
print("executing as normal script")
|
||||||
monitor()
|
monitor()
|
||||||
|
|
||||||
with daemon.DaemonContext():
|
|
||||||
print("entering daemon mode")
|
|
||||||
monitor()
|
|
||||||
|
|
Loading…
Reference in New Issue