From 545f922e71ea0cb1069650d32611c5f2f8961a16 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Sun, 4 Mar 2012 15:10:14 +0000 Subject: [PATCH] * Connect Upstart to the system bus so that non-root users can run initctl. svn path=/nixos/trunk/; revision=32768 --- modules/services/system/dbus.nix | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/modules/services/system/dbus.nix b/modules/services/system/dbus.nix index 2808b0241c2..7232d12ecb9 100644 --- a/modules/services/system/dbus.nix +++ b/modules/services/system/dbus.nix @@ -135,6 +135,13 @@ in 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.