-
-
Notifications
You must be signed in to change notification settings - Fork 14.7k
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
nixos/mopidy: restart the systemd service on failure #357250
nixos/mopidy: restart the systemd service on failure #357250
Conversation
@@ -83,6 +83,7 @@ in { | |||
description = "mopidy music player daemon"; | |||
serviceConfig = { | |||
ExecStart = "${mopidyEnv}/bin/mopidy --config ${concatStringsSep ":" ([mopidyConf] ++ cfg.extraConfigFiles)}"; | |||
Restart = "always"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Restart = "always"; | |
Restart = "on-failure"; |
This is what's recommended upstream and helps prevent the service from restarting even when you are trying to stop it
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Indeed, thank you. I've updated this.
024c1df
to
b4cdb57
Compare
This ensures Mopidy is running, even after crashes.
b4cdb57
to
90dfafe
Compare
Backport failed for Please cherry-pick the changes locally and resolve any conflicts. git fetch origin release-24.11
git worktree add -d .worktree/backport-357250-to-release-24.11 origin/release-24.11
cd .worktree/backport-357250-to-release-24.11
git switch --create backport-357250-to-release-24.11
git cherry-pick -x 90dfafee359919d2574139ce4da1c896b45e5d4e |
This ensures Mopidy is running, even after crashes.
Things done
nix.conf
? (See Nix manual)sandbox = relaxed
sandbox = true
nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD"
. Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/
)Add a 👍 reaction to pull requests you find important.