forked from lix-project/lix
Install an Upstart service
This commit is contained in:
parent
de4cdd0d47
commit
20668b1363
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -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
|
||||||
|
|
1
Makefile
1
Makefile
|
@ -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
1
misc/upstart/local.mk
Normal file
|
@ -0,0 +1 @@
|
||||||
|
$(foreach n, nix-daemon.conf, $(eval $(call install-file-in, $(d)/$(n), $(sysconfdir)/init, 0644)))
|
5
misc/upstart/nix-daemon.conf.in
Normal file
5
misc/upstart/nix-daemon.conf.in
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
description "Nix Daemon"
|
||||||
|
start on filesystem
|
||||||
|
stop on shutdown
|
||||||
|
respawn
|
||||||
|
exec @bindir@/nix-daemon --daemon
|
Loading…
Reference in a new issue