summaryrefslogtreecommitdiff
path: root/init.d/dbus
diff options
context:
space:
mode:
authorAnna (navi) Figueiredo Gomes <navi@vlhl.dev>2023-06-20 17:52:28 -0300
committerAnna (navi) Figueiredo Gomes <navi@vlhl.dev>2023-06-20 17:52:28 -0300
commit5c6288c62d4a2a7f2e519758a6f851564a293b38 (patch)
tree7760dbe9b37e231d6c7a30dca65eb6be923aa0e0 /init.d/dbus
parent31ee4472e897cbf0c3d61bd56bd5864f4507b659 (diff)
Updated example init scriptsHEADmain
Signed-off-by: Anna (navi) Figueiredo Gomes <navi@vlhl.dev>
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"