Skip to content

Commit 44bbe5d

Browse files
authored
nixos/{boinc,guix}: Use exec to start the payload binary of the service (#297526)
2 parents 8db0ec7 + 5d49d4c commit 44bbe5d

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

nixos/modules/services/computing/boinc/client.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ in
9595
after = ["network.target"];
9696
wantedBy = ["multi-user.target"];
9797
script = ''
98-
${fhsEnvExecutable} --dir ${cfg.dataDir} ${allowRemoteGuiRpcFlag}
98+
exec ${fhsEnvExecutable} --dir ${cfg.dataDir} ${allowRemoteGuiRpcFlag}
9999
'';
100100
serviceConfig = {
101101
User = "boinc";

nixos/modules/services/misc/guix/default.nix

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,7 @@ in
275275
systemd.services.guix-daemon = {
276276
environment = serviceEnv;
277277
script = ''
278-
${lib.getExe' package "guix-daemon"} \
278+
exec ${lib.getExe' package "guix-daemon"} \
279279
--build-users-group=${cfg.group} \
280280
${lib.optionalString (cfg.substituters.urls != [ ])
281281
"--substitute-urls='${lib.concatStringsSep " " cfg.substituters.urls}'"} \
@@ -384,7 +384,7 @@ in
384384
}
385385
'';
386386
script = ''
387-
${lib.getExe' package "guix"} publish \
387+
exec ${lib.getExe' package "guix"} publish \
388388
--user=${cfg.publish.user} --port=${builtins.toString cfg.publish.port} \
389389
${lib.escapeShellArgs cfg.publish.extraArgs}
390390
'';
@@ -440,12 +440,10 @@ in
440440
description = "Guix garbage collection";
441441
startAt = cfg.gc.dates;
442442
script = ''
443-
${lib.getExe' package "guix"} gc ${lib.escapeShellArgs cfg.gc.extraArgs}
443+
exec ${lib.getExe' package "guix"} gc ${lib.escapeShellArgs cfg.gc.extraArgs}
444444
'';
445-
446445
serviceConfig = {
447446
Type = "oneshot";
448-
449447
PrivateDevices = true;
450448
PrivateNetwork = true;
451449
ProtectControlGroups = true;

0 commit comments

Comments
 (0)