Answer the question
In order to leave comments, you need to log in
How to make sure that no process is stopped when the terminal is disconnected (Putty)?
Tell me what could be the problem.
Installed Redmine on Debian + Nginx + Thin.
Recently, after disabling the terminal (I did not change the Putty settings), thin began to stop.
And all sorts of screen, &, tmux do not help.
I start manually thin
/etc/init.d/thin start
ps auxfww | grep thin
root 11984 0.0 0.0 11072 820 pts/0 S+ 03:57 0:00 \_ grep thin
redmine 11966 1.4 13.6 317352 143200 ? Sl 03:52 0:03 thin server (/tmp/thin.0.sock)
root 12003 0.0 0.0 11072 820 pts/0 S+ 03:58 0:00 \_ grep thin
Answer the question
In order to leave comments, you need to log in
This is of course not the right option (I think it’s correct to register it in services or whatever it’s called), but you can run it through screen:
> you are on the server
> screen
> thin launch command
> ctrl-a, ctrl-d
> you are back on the server
to return later to the screen session, just run screen -r
Kamrad nexthop 100% right - the problem is not in the terminal, but in crooked hands that Thin is falling. Smoke logs regarding the reasons of falling.
Install another terminal that would save sessions. Or write a demon. Well, or some tool for running programs in a separate thread.
You raise the process in screen, switch the screen, you can safely disconnect
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question