Detecting errors in upstart jobs

David david at silveregg.co.jp
Fri Jul 30 10:39:05 BST 2010


Hi,

I have not found a user mailing list, I hope this is the right place.

In one of Ubuntu's  jobstart definition (mongodb), there is an issue 
when the binary cannot be launched. More precisely, the script section 
as follows:

script
     ...
     exec start-stop-daemon --start --quiet --chuid mongodb \
         --exec  /usr/bin/mongod -- --config /etc/mongodb.conf;
   fi
end script

Does not signal any error even though mongod cannot be launched (the 
exact issue here is one of the shared library of the mongodb executable 
is missing). Worse, the status error of `service start mongodb` is 0.

How can I fix this ?

cheers,

Davud



More information about the upstart-devel mailing list