slub / ocrd_manager

frontend for ocrd_controller and adapter towards ocrd_kitodo
MIT License
10 stars 3 forks source link

SSH does not close connection after exit for_production.sh #9

Closed markusweigelt closed 2 years ago

markusweigelt commented 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