Install an Upstart service

This commit is contained in:
Eelco Dolstra 2014-05-02 13:14:10 +02:00
parent de4cdd0d47
commit 20668b1363
4 changed files with 8 additions and 0 deletions

1
.gitignore vendored
View File

@ -109,6 +109,7 @@ Makefile.config
/misc/systemd/nix-daemon.service /misc/systemd/nix-daemon.service
/misc/systemd/nix-daemon.socket /misc/systemd/nix-daemon.socket
/misc/upstart/nix-daemon.conf
*.a *.a
*.o *.o

View File

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

1
misc/upstart/local.mk Normal file
View File

@ -0,0 +1 @@
$(foreach n, nix-daemon.conf, $(eval $(call install-file-in, $(d)/$(n), $(sysconfdir)/init, 0644)))

View File

@ -0,0 +1,5 @@
description "Nix Daemon"
start on filesystem
stop on shutdown
respawn
exec @bindir@/nix-daemon --daemon