about summary refs log tree commit diff
diff options
context:
space:
mode:
authorDaiderd Jordan <daiderd@gmail.com>2018-02-28T18·58+0100
committerDaiderd Jordan <daiderd@gmail.com>2018-02-28T18·58+0100
commit05cb8e5c5a954fa999ac5156cdf19148a05fdb2b (patch)
tree6521e2896a449e52f0d2a6c9bf0f4499f9711561
parent14ca85688cdd17dfcf4b2bd8c324f21d6f3d1dde (diff)
launchd: enable keepalive for the nix-daemon service
Without this the daemon won't be restarted if the process ever dies, for
example when sending a SIGHUP to reload nix.conf.
-rw-r--r--misc/launchd/org.nixos.nix-daemon.plist.in2
1 files changed, 2 insertions, 0 deletions
diff --git a/misc/launchd/org.nixos.nix-daemon.plist.in b/misc/launchd/org.nixos.nix-daemon.plist.in
index 66fcd155ee9b..549619a57d56 100644
--- a/misc/launchd/org.nixos.nix-daemon.plist.in
+++ b/misc/launchd/org.nixos.nix-daemon.plist.in
@@ -4,6 +4,8 @@
   <dict>
     <key>Label</key>
     <string>org.nixos.nix-daemon</string>
+    <key>KeepAlive</key>
+    <true/>
     <key>RunAtLoad</key>
     <true/>
     <key>Program</key>