about summary refs log tree commit diff
path: root/misc/systemd/nix-daemon.service.in
diff options
context:
space:
mode:
authorEelco Dolstra <eelco.dolstra@logicblox.com>2014-04-07T09·18+0200
committerEelco Dolstra <eelco.dolstra@logicblox.com>2014-04-07T09·50+0200
commit84d6936371037559704337614c65007a8e61b5e1 (patch)
treeeb21a77502e0c67d525128e74212606e11ce0ea5 /misc/systemd/nix-daemon.service.in
parent8e5fbf4d730b9fcf39eddf5539a206cf19d2cdce (diff)
Install systemd units
Diffstat (limited to 'misc/systemd/nix-daemon.service.in')
-rw-r--r--misc/systemd/nix-daemon.service.in9
1 files changed, 9 insertions, 0 deletions
diff --git a/misc/systemd/nix-daemon.service.in b/misc/systemd/nix-daemon.service.in
new file mode 100644
index 000000000000..5fc04a3f5713
--- /dev/null
+++ b/misc/systemd/nix-daemon.service.in
@@ -0,0 +1,9 @@
+[Unit]
+Description=Nix Daemon
+RequiresMountsFor=@storedir@
+RequiresMountsFor=@localstatedir@
+ConditionPathIsReadWrite=@localstatedir@/nix/daemon-socket
+
+[Service]
+ExecStart=@@bindir@/nix-daemon nix-daemon --daemon
+KillMode=process