Author: eelco
Date: Sun Mar  4 15:10:14 2012
New Revision: 32768
URL: https://nixos.org/websvn/nix/?rev=32768&sc=1

Log:
* Connect Upstart to the system bus so that non-root users can run
  initctl.

Modified:
   nixos/trunk/modules/services/system/dbus.nix

Modified: nixos/trunk/modules/services/system/dbus.nix
==============================================================================
--- nixos/trunk/modules/services/system/dbus.nix        Sun Mar  4 12:58:22 
2012        (r32767)
+++ nixos/trunk/modules/services/system/dbus.nix        Sun Mar  4 15:10:14 
2012        (r32768)
@@ -135,6 +135,13 @@
 
         exec = "dbus-daemon --system";
 
+        postStart =
+          ''
+            # Signal Upstart to connect to the system bus.  This
+            # allows ‘initctl’ to work for non-root users.
+            kill -USR1 1
+          '';
+
         postStop =
           ''
             # !!! Hack: doesn't belong here.
_______________________________________________
nix-commits mailing list
[email protected]
http://lists.science.uu.nl/mailman/listinfo/nix-commits

Reply via email to