mpDris2
mpDris2 copied to clipboard
Add --managed option to disable timer
When idle is available, the main purpose of the timer loop is to reconnect the socket when it is disconnected.
An alternative is to allow systemd to handle this for us. We can bind the daemon to the mpd service, so that it is started automatically with the mpd service.
Add a new command-line option --managed
. If this is set, the daemon will exit
cleanly instead of attempting a reconnect loop, under the assmption that systemd
will restart it when mpd is available again.
Fixes #120 Also fixes #160 when managed by systemd - the service is only started when MPD is Improves #133 when using systemd - the timer is no longer enabled