summaryrefslogtreecommitdiff
path: root/init.d/dbus
diff options
context:
space:
mode:
Diffstat (limited to 'init.d/dbus')
-rwxr-xr-xinit.d/dbus4
1 files changed, 3 insertions, 1 deletions
diff --git a/init.d/dbus b/init.d/dbus
index 055c1ba..57e13fd 100755
--- a/init.d/dbus
+++ b/init.d/dbus
@@ -1,6 +1,8 @@
#!/sbin/openrc-run
+DBUS_SESSION_BUS_ADDRESS="unix:path=${XDG_RUNTIME_DIR:-${RC_SVCDIR}}/bus"
pidfile="${XDG_RUNTIME_DIR:-${RC_SVCDIR}}/${RC_SVCNAME#*.}"
command="/usr/bin/dbus-daemon"
-command_args="--session --syslog --nofork --address unix:path=${XDG_RUNTIME_DIR:-${RC_SVCDIR}}/bus"
+command_args="--session --syslog --nofork --address ${DBUS_SESSION_BUS_ADDRESS}"
command_background=yes
+export_vars="DBUS_SESSION_BUS_ADDRESS"