nixos/mopidy: restart the systemd service on failure
This ensures Mopidy is running, even after crashes.
This commit is contained in:
parent
c0bdabf2fe
commit
90dfafee35
@ -77,6 +77,7 @@ in {
|
||||
description = "mopidy music player daemon";
|
||||
serviceConfig = {
|
||||
ExecStart = "${mopidyEnv}/bin/mopidy --config ${lib.concatStringsSep ":" ([mopidyConf] ++ cfg.extraConfigFiles)}";
|
||||
Restart = "on-failure";
|
||||
User = "mopidy";
|
||||
};
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user