Not sure whether it's the best way, but one idea would be to run PulseAudio in system mode (with the necessary warnings: http://www.freedesktop.org/wiki/Software/PulseAudio/Documentation/User/WhatIsWrongWithSystemWide/ ). You could then use Requires and After in the xbmc service file to specify the dependency. On Wed, Aug 13, 2014, at 01:08, John wrote: > I need use something to query /usr/bin/pulseaudio and to ask it if it is > fully initialized. ?Right now, starting xbmc in stand-alone mode through > a systemd service causes xbmc to start before pulse-audio is fully > initialized which results in xbmc not being able to see all of the audio > devices on the system. ?Can someone suggest a method that will basically > return an exit code of 0 when PA is initialized and a non-0 code when it > is not ready? > > More context: > The main line in the systemd service file just starts up xinit via > dbus-launch and loads up xbmc-standalone on a new tty: > ? ExecStart = /usr/bin/xinit /usr/bin/dbus-launch --exit-with-session /usr/bin/xbmc-standalone -- :0 -nolisten tcp vt7 > > > /usr/bin/xbmc-standalone is just a wrapper script that basically does > this: > ? /usr/bin/start-pulseaudio-x11 > ? /usr/bin/xbmc --standalone > > Thank you in advance for the suggestions! > _______________________________________________ > pulseaudio-discuss mailing list > pulseaudio-discuss at lists.freedesktop.org > http://lists.freedesktop.org/mailman/listinfo/pulseaudio-discuss