mirror of
https://github.com/nix-community/home-manager.git
synced 2026-01-11 09:29:41 +08:00
nextcloud-client: add stop and restart settings to the service
The service fails on Home Manager switch every now and then. This commit add explicit stop and restart settings to it. This also adds some additional parameters used in the upstream service definition.
This commit is contained in:
committed by
Robert Helgesson
parent
be9c10d4a7
commit
bf7056c6a2
@@ -40,6 +40,12 @@ in
|
||||
Environment = [ "PATH=${config.home.profileDirectory}/bin" ];
|
||||
ExecStart =
|
||||
"${cfg.package}/bin/nextcloud" + (lib.optionalString cfg.startInBackground " --background");
|
||||
ExecStop = "${cfg.package}/bin/nextcloud --quit";
|
||||
KillMode = "process";
|
||||
Restart = "on-failure";
|
||||
RestartSec = "5s";
|
||||
NoNewPrivileges = true;
|
||||
RestrictRealtime = true;
|
||||
};
|
||||
|
||||
Install = {
|
||||
|
||||
Reference in New Issue
Block a user