# File lib/chef/provider/service/upstart.rb, line 174 def restart_service if @new_resource.restart_command super # Upstart always provides restart functionality so we don't need to mimic it with stop/sleep/start. # Older versions of upstart would fail on restart if the service was currently stopped, check for that. LP:430883 else @new_resource.supports[:restart] if @current_resource.running run_command_with_systems_locale(:command => "/sbin/restart #{@job}") else start_service end end end