DynaMPD icon indicating copy to clipboard operation
DynaMPD copied to clipboard

act as python daemon

Open hennegwath opened this issue 12 years ago • 2 comments

Hi,

I recently found this piece of sftware and got it working (after getting a working api_key from google ;)). Brilliant. The only thing is that I would like to have it work in the background as daemon (run on the mpd-machine).

Could you let daemonize the script? I think you have to do some double-forking. Checkout http://mpd.wikia.com/wiki/Hack:mpd-notify.py for an example.

kind regards, Henning

hennegwath avatar Jan 04 '13 15:01 hennegwath

Yeah the API key doesn't work anymore :(

What benefit is there in having the code deamonize itself when you can just use your shell feature?

ubitux avatar Jan 05 '13 11:01 ubitux

It's just nicer, because you won't have to build a script around it to damonize. I think to do it properly prevents processes to become zombious... "daemon.py &" alone won't serve and I don't know if "( daemon.py &) &" does it well enough.

Am 05.01.2013 12:35, schrieb Clément Bœsch:

Yeah the API key doesn't work anymore :(

What benefit is there in having the code deamonize itself when you can just use your shell feature?

hennegwath avatar Jan 05 '13 12:01 hennegwath