opscode-cookbooks/supervisor — pull request #24 by tejaycar (2013-09-19 17:33:41+00:00)
Title: Update service.rb

If `star`t or `stop` is called when service is `starting` or `stopping`, it can result in an error if the service completes starting or stopping between the check and the execution of the call. This fix checks for `STARTING` and `STOPPING` states and short circuits the `start` or `stop`.

added checks for STOPPING when stop is called and STARTING when start is called.