Skip to content

Commit

Permalink
Merge pull request #196 from IronTetsubo/issue117
Browse files Browse the repository at this point in the history
Fixes issue #117 - msm restart properly says server message for restart,...
  • Loading branch information
zachlatta committed Sep 14, 2013
2 parents 3d72d7c + 98a4da2 commit f8434de
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions init/msm
Original file line number Diff line number Diff line change
Expand Up @@ -1959,8 +1959,9 @@ manager_stop_all_servers_now() {
# Stop all servers at the same time
for ((server=0; server<${NUM_SERVERS}; server++)); do
if server_is_running "$server"; then
was_running[$server]="true"
any_running="true"
was_running[$server]="true"

echo "Server \"${SERVER_NAME[$server]}\" was running, now stopping."
server_eval "$server" "stop"
else
Expand Down Expand Up @@ -2064,7 +2065,7 @@ command_stop_now() {
# Restarts all servers
command_restart() {
echo "Stopping servers:"
command_stop
manager_stop_all_servers "restart"

echo "Starting servers:"
command_start
Expand All @@ -2073,7 +2074,7 @@ command_restart() {
# Restarts all servers without delay
command_restart_now() {
echo "Stopping servers:"
command_stop_now
manager_stop_all_servers_now

echo "Starting servers:"
command_start
Expand Down

0 comments on commit f8434de

Please sign in to comment.