Page 1 of 1

FYI: detach and keep SAB running with "screen" command

Posted: January 29th, 2018, 8:27 am
by sander
Recently I learned about "screen". I find it handy in combination with SABnzbd, so here's a FYI:

If you want to keep SABnzbd running in a terminal, but not as a service/daemon, you can do that with "screen":

With SSH / putty, connect to your Linux machine. Type "screen", and you get a new terminal. There type "sabnzbdplus", and see SAB starting and running. Good.
Now the magic: type "CTRL A D" (detach?), and you're back in the first terminal. You can disconnect. SABnzbd is still running. :)

Then, later on, with SSH/putty reconnect to your Linux machine. Type "screen -ls" to see the running screen processes. If there is only one, you can type "screen -ar" (reconnect?) to reconnect. You get the SABnzbd process again.
Type "CTRL A D" to detach again.

Hope this helps.