Skip to content

Commit

Permalink
update aeolus check/restart services scripts for f16 (jlaska's fix fo…
Browse files Browse the repository at this point in the history
…r BZ #747762 rebased)
  • Loading branch information
movitto committed Nov 11, 2011
1 parent 219f023 commit 0af7031
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion bin/aeolus-check-services
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ init_scripts=%w(mongod iwhd postgresql httpd qpidd deltacloud-core libvirtd aeol

init_scripts.each do |script|
puts "\nChecking #{script} ..."
cmd = "/etc/init.d/#{script} status"
cmd = "service #{script} status"
out = `#{cmd}`
if $?.to_i == 0
puts " \e[1;32mSuccess:\e[0m #{out.strip}"
Expand Down
2 changes: 1 addition & 1 deletion bin/aeolus-restart-services
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ def perform(action, svcs)
action = action.to_s
svcs.map do |script|
puts "\n#{action.capitalize}ing #{script} ..."
cmd = "/etc/init.d/#{script} #{action}"
cmd = "service #{script} #{action}"
out = `#{cmd}`
if $?.to_i == 0
puts " \e[1;32mSuccess:\e[0m #{out.strip}"
Expand Down

0 comments on commit 0af7031

Please sign in to comment.