summaryrefslogtreecommitdiff
path: root/lib/chef/provider/service/upstart.rb
diff options
context:
space:
mode:
authorJeremiah Snapp <jeremiah@opscode.com>2013-09-10 16:05:24 -0400
committerBryan McLellan <btm@opscode.com>2013-10-04 09:52:09 -0700
commit83796f4cfa46deebcd233a030fad5f0199df94e4 (patch)
tree920695de322f3ade5e9484776fa32d17bc5bb33f /lib/chef/provider/service/upstart.rb
parent665f6a5a5791a3519b7dcb3c81b1e08c66987263 (diff)
downloadchef-83796f4cfa46deebcd233a030fad5f0199df94e4.tar.gz
CHEF-4534 Fix restart_service if..else syntax in upstart provider
Diffstat (limited to 'lib/chef/provider/service/upstart.rb')
-rw-r--r--lib/chef/provider/service/upstart.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/chef/provider/service/upstart.rb b/lib/chef/provider/service/upstart.rb
index 9ec0f54b43..67ca649b6d 100644
--- a/lib/chef/provider/service/upstart.rb
+++ b/lib/chef/provider/service/upstart.rb
@@ -176,7 +176,7 @@ class Chef
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]
+ else
if @current_resource.running
run_command_with_systems_locale(:command => "/sbin/restart #{@job}")
else