Skip to content
Open

Pr #275

Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 12 additions & 1 deletion init/msm
Original file line number Diff line number Diff line change
Expand Up @@ -2083,6 +2083,13 @@ command_start() {
done
}

command_start_nodetach() {
command_start
trap interrupt_wait TERM INT
echo "You have specified nodetach : waiting for SIGINT or SIGTERM"
while true; do sleep 1; done
}

# Stops all servers after a delay
command_stop() {
manager_stop_all_servers "stop"
Expand Down Expand Up @@ -3657,6 +3664,7 @@ register_commands() {
# position matches the position of that element in the command signature.

register_command "start" "command_start"
register_command "start nodetach" "command_start_nodetach"
register_command "stop" "command_stop"
register_command "stop now" "command_stop_now"
register_command "restart" "command_restart"
Expand Down Expand Up @@ -4038,7 +4046,10 @@ console_command() {




interrupt_wait() {
command_stop
exit 0
}



Expand Down