1
1
mirror of https://github.com/LnL7/nix-darwin.git synced 2024-11-05 05:43:12 +03:00

services.nix-daemon: use wrapper to possibly avoid launchd startup issues

This commit is contained in:
Daiderd Jordan 2017-01-05 23:48:09 +01:00
parent aaa261694a
commit 8065a509a4
No known key found for this signature in database
GPG Key ID: D02435D05B810C96
2 changed files with 2 additions and 2 deletions

View File

@ -41,7 +41,7 @@ in
config = mkIf cfg.enable { config = mkIf cfg.enable {
launchd.daemons.activate-system = { launchd.daemons.activate-system = {
serviceConfig.ProgramArguments = [ "/bin/sh" "${activateScript}" ]; serviceConfig.ProgramArguments = [ "/bin/sh" "-c" "exec ${activateScript}" ];
serviceConfig.KeepAlive.SuccessfulExit = false; serviceConfig.KeepAlive.SuccessfulExit = false;
serviceConfig.RunAtLoad = true; serviceConfig.RunAtLoad = true;
}; };

View File

@ -38,7 +38,7 @@ in
''; '';
launchd.daemons.nix-daemon = { launchd.daemons.nix-daemon = {
serviceConfig.Program = "${config.nix.profile}/bin/nix-daemon"; serviceConfig.ProgramArguments = [ "/bin/sh" "-c" "exec ${config.nix.profile}/bin/nix-daemon" ];
serviceConfig.KeepAlive = true; serviceConfig.KeepAlive = true;
serviceConfig.ProcessType = "Background"; serviceConfig.ProcessType = "Background";
serviceConfig.LowPriorityIO = config.nix.daemonIONice; serviceConfig.LowPriorityIO = config.nix.daemonIONice;