Skip to content

Commit

Permalink
Temporary fix for bnc#926485 (better fix commited to master)
Browse files Browse the repository at this point in the history
  • Loading branch information
ancorgs committed Jul 6, 2015
1 parent 579ef92 commit 4127d9e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/modules/Sysconfig.rb
Original file line number Diff line number Diff line change
Expand Up @@ -1085,15 +1085,15 @@ def Write
Builtins.foreach(_Reloaded) do |servicename, dummy|
next if abort
# check whether service is running
check_command = Builtins.sformat("/etc/init.d/%1 status", servicename)
check_command = Builtins.sformat("/usr/sbin/rc%1 status", servicename)
result = Convert.to_integer(
SCR.Execute(path(".target.bash"), check_command)
)
Builtins.y2milestone("%1 service status: %2", servicename, result)
if result == 0
# service is running, reload it
start_command = Builtins.sformat(
"/etc/init.d/%1 reload",
"/usr/sbin/rc%1 reload",
servicename
)
confirm = Builtins.sformat(
Expand Down Expand Up @@ -1127,7 +1127,7 @@ def Write
# restart required services
Builtins.foreach(_Restarted) do |servicename, dummy|
# check whether service is running
check_command = Builtins.sformat("/etc/init.d/%1 status", servicename)
check_command = Builtins.sformat("/usr/sbin/rc%1 status", servicename)
result = Convert.to_integer(
SCR.Execute(path(".target.bash"), check_command)
)
Expand All @@ -1136,7 +1136,7 @@ def Write
if result == 0
# service is running, restart it
start_command = Builtins.sformat(
"/etc/init.d/%1 restart",
"/usr/sbin/rc%1 restart",
servicename
)
confirm = Builtins.sformat(
Expand Down

0 comments on commit 4127d9e

Please sign in to comment.