upstart
is something that was never in the RHEL stream, so you won't find much about that on a CentOS system.
Following the guidance on this link there is another option for setting that variable. dbus-launch
will print out the shell variables for you, so you could just do
. <(dbus-launch --sh-syntax --exit-with-session)
to source the output of that command and have it set DBUS_SESSION_BUS_ADDRESS
(and DBUS_SESSION_BUS_PID
) for you.
This seems to work on both Fedora and Ubuntu, and I see the dbus-launch
executable available for my CentOS 6 machine in the base repo, so I assume it'll work there too.
(On CentOS yum whatprovides '*/dbus-launch'
says it's in the dbus-x11
package.)