mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-11 23:44:13 +00:00
nixos/shairport-sync: restart the systemd service on failure
This ensures shairport-sync is running, even after crashes.
This commit is contained in:
parent
23e89b7da8
commit
dde8ee1179
@ -103,6 +103,7 @@ in
|
||||
User = cfg.user;
|
||||
Group = cfg.group;
|
||||
ExecStart = "${lib.getExe cfg.package} ${cfg.arguments}";
|
||||
Restart = "on-failure";
|
||||
RuntimeDirectory = "shairport-sync";
|
||||
};
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user