Fix reload for services without reload functionality.

This commit is contained in:
r-vdp 2023-06-29 17:10:39 +02:00
parent 9ddb6340d9
commit 1454525760
No known key found for this signature in database
4 changed files with 63 additions and 18 deletions

View file

@ -1,4 +1,4 @@
{ lib, pkgs, ... }: {
{ lib, ... }: {
config = {
nixpkgs.hostPlatform = "x86_64-linux";
@ -62,7 +62,6 @@
serviceConfig = {
Type = "oneshot";
RemainAfterExit = true;
ExecReload = "${lib.getBin pkgs.coreutils}/bin/true";
};
wantedBy = [ "system-manager.target" ];
requiredBy = lib.mkIf (ix > 5) [ "service-0.service" ];