saltstack/salt — pull request #1132 by tvaughan (2012-04-24 21:22:00+00:00)
Title: Use return code to determine service status in Upstart module.

This also broke the "dead" state.

This is because `service` will call `/etc/init.d/` for
System V style services. Each of which could have different output.

For example:

$ sudo invoke-rc.d exim4 stop
* Stopping MTA [ OK ]
$ sudo service exim4 status
* checking separate queue runner daemon... [ OK ]
* checking combined SMTP listener and queue runner daemon... [ OK ]
$ echo $?
3
$ sudo invoke-rc.d exim4 start
* Starting MTA [ OK ]
$ sudo service exim4 status
* checking separate queue runner daemon... [ OK ]
* checking combined SMTP listener and queue runner daemon... [ OK ]
$ echo $?
0

Ask and ye shall receive. :)