Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add --managed option to disable timer #161

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

williamvds
Copy link

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

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.
@MeisterP
Copy link

Also fixes #160 when managed by systemd - the service is only started when MPD is

For that to work I had to remove WantedBy=default.target. Otherwise it starts by default and triggers the socket activation.

MeisterP added a commit to MeisterP/poncho-overlay that referenced this pull request Nov 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants