summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorAbhishekKr <abhikumar163@gmail.com>2016-06-29 04:11:49 +0530
committerAbhishekKr <abhikumar163@gmail.com>2016-06-29 04:11:49 +0530
commit58e147a9dfa331c359df2c9a2bcc53a27a722ef5 (patch)
tree0502c5ac204d84a063aa10060cc14bc4909a1729 /lib
parent5c76329a9fcae1116929cf50c48608d2aa70872c (diff)
downloadchef-58e147a9dfa331c359df2c9a2bcc53a27a722ef5.tar.gz
service - upstart restart - fixing specs and call of stop
Diffstat (limited to 'lib')
-rw-r--r--lib/chef/provider/service/upstart.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/chef/provider/service/upstart.rb b/lib/chef/provider/service/upstart.rb
index 268324b8c7..4acad768a4 100644
--- a/lib/chef/provider/service/upstart.rb
+++ b/lib/chef/provider/service/upstart.rb
@@ -190,9 +190,9 @@ class Chef
# http://upstart.ubuntu.com/cookbook/#restart (it doesn't uses latest jon config from disk but retains old)
else
if @current_resource.running
- stop_command
+ stop_service
sleep 1
- start_command
+ start_service
else
start_service
end