about summary refs log tree commit diff
path: root/third_party/nix/misc/upstart
diff options
context:
space:
mode:
Diffstat (limited to 'third_party/nix/misc/upstart')
-rw-r--r--third_party/nix/misc/upstart/local.mk5
-rw-r--r--third_party/nix/misc/upstart/nix-daemon.conf.in5
2 files changed, 10 insertions, 0 deletions
diff --git a/third_party/nix/misc/upstart/local.mk b/third_party/nix/misc/upstart/local.mk
new file mode 100644
index 000000000000..a73dc061e4fc
--- /dev/null
+++ b/third_party/nix/misc/upstart/local.mk
@@ -0,0 +1,5 @@
+ifeq ($(OS), Linux)
+
+  $(foreach n, nix-daemon.conf, $(eval $(call install-file-in, $(d)/$(n), $(sysconfdir)/init, 0644)))
+
+endif
diff --git a/third_party/nix/misc/upstart/nix-daemon.conf.in b/third_party/nix/misc/upstart/nix-daemon.conf.in
new file mode 100644
index 000000000000..0e806edbd770
--- /dev/null
+++ b/third_party/nix/misc/upstart/nix-daemon.conf.in
@@ -0,0 +1,5 @@
+description "Nix Daemon"
+start on filesystem
+stop on shutdown
+respawn
+exec @bindir@/nix-daemon --daemon