guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

279/376: Add a launchd configuration file to run nix-daemon


From: Ludovic Courtès
Subject: 279/376: Add a launchd configuration file to run nix-daemon
Date: Wed, 28 Jan 2015 22:05:36 +0000

civodul pushed a commit to tag 1.8
in repository guix.

commit bbf294cceb58182333faf0c62b57f0f5dece46e9
Author: Eelco Dolstra <address@hidden>
Date:   Tue Nov 4 10:14:18 2014 +0100

    Add a launchd configuration file to run nix-daemon
---
 Makefile                                   |    1 +
 misc/launchd/local.mk                      |    5 +++++
 misc/launchd/org.nixos.nix-daemon.plist.in |   16 ++++++++++++++++
 3 files changed, 22 insertions(+), 0 deletions(-)

diff --git a/Makefile b/Makefile
index b41a820..08e4012 100644
--- a/Makefile
+++ b/Makefile
@@ -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 \
diff --git a/misc/launchd/local.mk b/misc/launchd/local.mk
new file mode 100644
index 0000000..0ba722e
--- /dev/null
+++ b/misc/launchd/local.mk
@@ -0,0 +1,5 @@
+ifeq ($(OS), Darwin)
+
+  $(eval $(call install-data-in, $(d)/org.nixos.nix-daemon.plist, 
$(prefix)/Library/LaunchDaemons))
+
+endif
diff --git a/misc/launchd/org.nixos.nix-daemon.plist.in 
b/misc/launchd/org.nixos.nix-daemon.plist.in
new file mode 100644
index 0000000..2e76947
--- /dev/null
+++ b/misc/launchd/org.nixos.nix-daemon.plist.in
@@ -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>



reply via email to

[Prev in Thread] Current Thread [Next in Thread]