about summary refs log tree commit diff
path: root/misc/upstart
diff options
context:
space:
mode:
authorEelco Dolstra <eelco.dolstra@logicblox.com>2014-05-02T11·14+0200
committerEelco Dolstra <eelco.dolstra@logicblox.com>2014-05-02T11·14+0200
commit20668b136329da92be7c63e7f7c4918968ff0015 (patch)
tree73be9e65b2fc0d916318372b2582a44f891d8991 /misc/upstart
parentde4cdd0d47adc70a4db12397a42c18ee50b4e662 (diff)
Install an Upstart service
Diffstat (limited to 'misc/upstart')
-rw-r--r--misc/upstart/local.mk1
-rw-r--r--misc/upstart/nix-daemon.conf.in5
2 files changed, 6 insertions, 0 deletions
diff --git a/misc/upstart/local.mk b/misc/upstart/local.mk
new file mode 100644
index 000000000000..249262d4f787
--- /dev/null
+++ b/misc/upstart/local.mk
@@ -0,0 +1 @@
+$(foreach n, nix-daemon.conf, $(eval $(call install-file-in, $(d)/$(n), $(sysconfdir)/init, 0644)))
diff --git a/misc/upstart/nix-daemon.conf.in b/misc/upstart/nix-daemon.conf.in
new file mode 100644
index 000000000000..0e806edbd770
--- /dev/null
+++ b/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