Skip to content

Commit

Permalink
Add a launchd configuration file to run nix-daemon
Browse files Browse the repository at this point in the history
  • Loading branch information
edolstra committed Nov 4, 2014
1 parent 6f6b75c commit bbf294c
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 0 deletions.
1 change: 1 addition & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Expand Down
5 changes: 5 additions & 0 deletions misc/launchd/local.mk
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
ifeq ($(OS), Darwin)

$(eval $(call install-data-in, $(d)/org.nixos.nix-daemon.plist, $(prefix)/Library/LaunchDaemons))

endif
16 changes: 16 additions & 0 deletions misc/launchd/org.nixos.nix-daemon.plist.in
Original file line number Diff line number Diff line change
@@ -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>

0 comments on commit bbf294c

Please sign in to comment.