saltstack/salt — pull request #1295 by sharpone74 (2012-05-17 05:49:55+00:00)
Title: Small change in upstart.py service module to correctly report a target service start/stop status.

This change causes the upstart.py module to check if the target service is an upstart service first rather than a sysv service.

This is needed because
a) a lot of ubuntu services have both an upstart AND a sysv scripts and ubuntu will try upstart verstion first if given a 'service status' command
b) a lot of the sysv scripts defer to the upstart version of the target anyway, if it exists (for example the ssh service) which breaks the sysv return code contract when running 'service status' to get its status.

Note this is also consistent with the other upstart.py service methods such as 'start', 'stop', etc.