3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/upstart-jobs/nix-daemon.nix
Eelco Dolstra 0ee31b29ef * The daemon needs OpenSSH to be in the PATH for signing/verifying.
svn path=/nixos/trunk/; revision=8025
2007-02-22 18:04:18 +00:00

18 lines
279 B
Nix

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