SSH question on bench start

Recently I’ve been using bench start to run the development environment (in comparison to the production environment).

Normally to quit the development environment I just need to ctrl + c in the same terminal window.

Problem is, the development environment keeps running when the SSH pipeline is broken for whatever reason, and now when I SSH back into the server I have no way to stop it except to reboot the entire server.

Is there a different way to stop the development environment when SSH connection is broken?

Thanks!

I do bench stop for it. Ctrl C is get out of the terminal however bench will continue to run with this command.

~/frappe-bench$ bench stop
Usage: bench [OPTIONS] COMMAND [ARGS]...
Try 'bench --help' for help.

Error: No such command 'stop'.

Thank you for the quick reply! But bench stop is not a command?

Use this script. :point_down:

2 Likes

This worked very well for us:+1:t5: and should be part of the bench commands.

Thanks

1 Like

To avoid broken pipe error use screen:

If you ever face the broken pipe error in development mode, then you can manually stop the processes which run on bench start: