The following code fails on my Mac OS X in daemon but not in foreground mode:
import requests
def main():
while True:
requests.get('https://httpbin.org/get')
sleep(10)
daemon = Daemonize(app="demo_app", pid="/tmp/demo_app.pid", action=main)
daemon.start()
I'm using Python 3.8.5, daemonize 2.5.0 and requests 2.24.0
The following code fails on my Mac OS X in daemon but not in foreground mode:
I'm using Python 3.8.5, daemonize 2.5.0 and requests 2.24.0