mirror of
https://github.com/msmhq/msm.git
synced 2024-08-30 18:12:35 +00:00
Fixes issue #117 - msm restart properly says server message for restart, not shutdown.
This commit is contained in:
parent
0ef89241d2
commit
98a4da2332
7
init/msm
7
init/msm
@ -1948,8 +1948,9 @@ manager_stop_all_servers_now() {
|
|||||||
# Stop all servers at the same time
|
# Stop all servers at the same time
|
||||||
for ((server=0; server<${NUM_SERVERS}; server++)); do
|
for ((server=0; server<${NUM_SERVERS}; server++)); do
|
||||||
if server_is_running "$server"; then
|
if server_is_running "$server"; then
|
||||||
was_running[$server]="true"
|
|
||||||
any_running="true"
|
any_running="true"
|
||||||
|
was_running[$server]="true"
|
||||||
|
|
||||||
echo "Server \"${SERVER_NAME[$server]}\" was running, now stopping."
|
echo "Server \"${SERVER_NAME[$server]}\" was running, now stopping."
|
||||||
server_eval "$server" "stop"
|
server_eval "$server" "stop"
|
||||||
else
|
else
|
||||||
@ -2053,7 +2054,7 @@ command_stop_now() {
|
|||||||
# Restarts all servers
|
# Restarts all servers
|
||||||
command_restart() {
|
command_restart() {
|
||||||
echo "Stopping servers:"
|
echo "Stopping servers:"
|
||||||
command_stop
|
manager_stop_all_servers "restart"
|
||||||
|
|
||||||
echo "Starting servers:"
|
echo "Starting servers:"
|
||||||
command_start
|
command_start
|
||||||
@ -2062,7 +2063,7 @@ command_restart() {
|
|||||||
# Restarts all servers without delay
|
# Restarts all servers without delay
|
||||||
command_restart_now() {
|
command_restart_now() {
|
||||||
echo "Stopping servers:"
|
echo "Stopping servers:"
|
||||||
command_stop_now
|
manager_stop_all_servers_now
|
||||||
|
|
||||||
echo "Starting servers:"
|
echo "Starting servers:"
|
||||||
command_start
|
command_start
|
||||||
|
Loading…
Reference in New Issue
Block a user