daemonize
daemonize copied to clipboard
daemonize is a library for writing system daemons in Python.
I'm asking before I go down this road...it looks like there are open issues for a long time and no recent commits. If this project is indeed abandoned, please recommend...
Hi, when killing an application using daemonize with e.g. pkill this following warning(?) appears since Python 3.10 I believe ``` Exception ignored in atexit callback: Traceback (most recent call last):...
I know that the `app` keyword is for syslog, but couldn't it also set the process? otherwise the demon has the same name as the (dead) parent which is confusing....
The following code fails on my Mac OS X in daemon but not in foreground mode: ```python 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)...
Currently, at daemonize.py#L137: `for fd in range(3, resource.getrlimit(resource.RLIMIT_NOFILE)[0]):` It's not very wise to use `RLIMIT_NOFILE` for this purpose. In real-world production servers this value may be as high as few...
I'm running into a really specific and weird bug on OSX. ## Reproduction instructions Use OSX. I am using 10.15.4 right now; I don't know if the specific version matters....
```python from src import main from functools import partial for i in range(6): pid = f"/tmp/app_{i}.pid" Daemonize(app=f"app_{i}", pid=pid, action=partial(main, some_arg=True), auto_close_fds=False).start() ``` Could I make something like this work somehow?...
Traceback (most recent call last): File "crm.py", line 218, in def main(): File "/home/heweiwei/.pyenv/versions/3.8.3/lib/python3.8/site-packages/click/decorators.py", line 130, in decorator cmd = _make_command(f, name, attrs, cls) File "/home/heweiwei/.pyenv/versions/3.8.3/lib/python3.8/site-packages/click/decorators.py", line 98, in _make_command...
See attached patch that uses python.executable instead of hardcoding interpreter calls thus making the testsuite always run the interpreter the tests are executed with instead of always /usr/bin/python. [python-exec.txt](https://github.com/thesharp/daemonize/files/4556930/python-exec.txt)
I have an issue that I wish to `wait` on the daemon PID so ask for the contents of the pid file immediately after the call to start the daemon....