Closed markusweigelt closed 2 years ago
Add "/dev/null 2>&1" to subshell before background "&"
The reason is that SSH establishes a two-step process relationship and the for_production.sh exit command terminates the script but not the SSH bash.
https://programming.vip/docs/ssh-remote-execution-of-nohup-command-does-not-exit.html
Add "/dev/null 2>&1" to subshell before background "&"
The reason is that SSH establishes a two-step process relationship and the for_production.sh exit command terminates the script but not the SSH bash.
https://programming.vip/docs/ssh-remote-execution-of-nohup-command-does-not-exit.html