V
V
vinznsk2017-10-17 04:00:17
linux
vinznsk, 2017-10-17 04:00:17

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

see
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)

when the terminal is disconnected, Redmine crashes, and when I run Putty to see if thin works, the last command shows only the root user.
root     12003  0.0  0.0  11072   820 pts/0    S+   03:58   0:00      \_ grep thin

I can't understand where I've made up my mind... I
contacted the hosting admins, they start it up, turn it off and everything works (Linux terminal). Why doesn't it work for me? I did not change putty settings.
Updated: never found a solution, reinstalled Debian & Redmine & thin completely and everything works. Perhaps somewhere wiser with the settings last time.

Answer the question

In order to leave comments, you need to log in

5 answer(s)
I
Ivan, 2017-10-17
@IvanTheCrazy

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

A
athacker, 2017-10-17
@athacker

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.

G
Griboks, 2017-10-17
@Griboks

Install another terminal that would save sessions. Or write a demon. Well, or some tool for running programs in a separate thread.

P
pfg21, 2017-10-17
@pfg21

classic nohup command &

C
Concertbil, 2019-03-08
@Concertbil

You raise the process in screen, switch the screen, you can safely disconnect

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question