mirror of
https://github.com/nix-community/home-manager.git
synced 2025-11-08 19:46:05 +01: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:
parent
be9c10d4a7
commit
bf7056c6a2
1 changed files with 6 additions and 0 deletions
|
|
@ -40,6 +40,12 @@ in
|
||||||
Environment = [ "PATH=${config.home.profileDirectory}/bin" ];
|
Environment = [ "PATH=${config.home.profileDirectory}/bin" ];
|
||||||
ExecStart =
|
ExecStart =
|
||||||
"${cfg.package}/bin/nextcloud" + (lib.optionalString cfg.startInBackground " --background");
|
"${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 = {
|
Install = {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue