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.