I have a custom upstart service which I'm trying to automate via Chef. The chef flow is like this: - Create /etc/init/myservice.conf, notify restart myservice (if conf file changes) - Start myservice
The Chef service restart is actually carried out as
So, if my service isn't already running, the restart fails saying that
/sbin/stop myservice returned 1
Is there a way I can return 0 on
/sbin/stop myservice if the service is already in a stopped state?