* The daemon needs OpenSSH to be in the PATH for signing/verifying.

svn path=/nixos/trunk/; revision=8025
This commit is contained in:
Eelco Dolstra 2007-02-22 18:04:18 +00:00
parent ed36857d5e
commit 0ee31b29ef
2 changed files with 7 additions and 2 deletions

View File

@ -67,6 +67,7 @@ import ../upstart-jobs/gather.nix {
# Nix daemon - required for multi-user Nix.
(import ../upstart-jobs/nix-daemon.nix {
inherit nix;
inherit (pkgs) openssl;
})
# Cron daemon.

View File

@ -1,4 +1,4 @@
{nix}:
{nix, openssl}:
{
name = "nix-daemon";
@ -7,7 +7,11 @@
start on startup
stop on shutdown
env NIX_CONF_DIR=/nix/etc/nix
respawn ${nix}/bin/nix-worker --daemon > /dev/null 2>&1
respawn
script
export PATH=${openssl}/bin:$PATH
exec ${nix}/bin/nix-worker --daemon > /dev/null 2>&1
end script
";
}