New paste Repaste Download
#!/sbin/openrc-run
# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License, v2 or later
depend() {
reexport DBUS_SESSION_BUS_ADDRESS
}
export DBUS_SESSION_BUS_ADDRESS="unix:path=${XDG_RUNTIME_DIR}/bus"
supervisor=supervise-daemon
description="An IPC message bus daemon"
command="/usr/bin/dbus-daemon"
command_args="--session --syslog --nofork --address ${DBUS_SESSION_BUS_ADDRESS}"
extra_started_commands="reload"
stop_post() {
[ ! -S "${DBUS_SESSION_BUS_ADDRESS}" ] || rm -f "${DBUS_SESSION_BUS_ADDRESS}"
}
reload() {
ebegin "Reloading D-BUS messagebus config"
dbus-send --print-reply --system --type=method_call \
--dest=org.freedesktop.DBus \
/ org.freedesktop.DBus.ReloadConfig > /dev/null
eend $?
}
Filename: /etc/user/init.d/dbus. Size: 766b. View raw, , hex, or download this file.

This paste expires on 2026-04-11 16:11:39.043560+00:00. Pasted through v1-api.