Add a launchd configuration file to run nix-daemon

This commit is contained in:
Eelco Dolstra 2014-11-04 10:14:18 +01:00
parent 6f6b75cd09
commit bbf294cceb
3 changed files with 22 additions and 0 deletions

View File

@ -17,6 +17,7 @@ makefiles = \
scripts/local.mk \
corepkgs/local.mk \
misc/systemd/local.mk \
misc/launchd/local.mk \
misc/upstart/local.mk \
misc/emacs/local.mk \
doc/manual/local.mk \

5
misc/launchd/local.mk Normal file
View File

@ -0,0 +1,5 @@
ifeq ($(OS), Darwin)
$(eval $(call install-data-in, $(d)/org.nixos.nix-daemon.plist, $(prefix)/Library/LaunchDaemons))
endif

View File

@ -0,0 +1,16 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Label</key>
<string>org.nixos.nix-daemon</string>
<key>RunAtLoad</key>
<true/>
<key>Program</key>
<string>@bindir@/nix-daemon</string>
<key>StandardErrorPath</key>
<string>/var/log/nix-daemin.log</string>
<key>StandardOutPath</key>
<string>/dev/null</string>
</dict>
</plist>