Method: AutomateIt::ServiceManager#restart

Defined in:
lib/automateit/service_manager.rb

#restart(service, opts = {}) ⇒ Object

Restart this service if it’s running, or start it if it’s stopped.

Options:

  • :wait – Maxmimum seconds to wait for service to STOP.

  • :pause – Maximum seconds to wait for service to START before stopping it. Only set this if you just started the service and then decided to restart it.



46
# File 'lib/automateit/service_manager.rb', line 46

def restart(service, opts={}) dispatch(service, opts) end