[maemo-developers] upstart and dbus

From: Graham Cobb g+770 at cobb.uk.net
Date: Thu May 13 02:08:50 EEST 2010
On Wednesday 12 May 2010 23:07:47 Faheem Pervez wrote:
> If you do use run-standalone.sh in an Upstart script, please be aware
> of https://bugs.maemo.org/show_bug.cgi?id=8148. Lucas Maneos'
> awesomeness helped me to fix my issue.

Interesting.

For others (who don't want to read through 37 comments which demonstrate Lucas 
Maneos' awesomeness in both perseverance and debugging skills!), this boiled 
down to Faheem's app using run-standalone.sh in an upstart script and needing 
to add:

pre-start script
        /usr/sbin/waitdbus system
end script

Faheem, what were you using as the start condition for your upstart script?  I 
would have assumed that if it were anything after "start on started dbus" 
then the waitdbus would be unnecessary.  In particular, I normally use

start on XSESSIONS_STARTING

for user applications, which is long after dbus.

However, adding the pre-start script if you plan to use run-standalone.sh in 
an upstart script seems like a good rule for safety.

Graham

P.S. This probably explains a problem I have with taking backups on my test 
N900, which I couldn't understand despite poring over strace output for 
hours!
More information about the maemo-developers mailing list