Answer the question
In order to leave comments, you need to log in
Is it ok to leave a self-written server running in screen?
There is a certain server which is manually started through ssh. So that it doesn't crash when I close ssh, I run it in screen.
Are there side effects from this method of starting/running the server? It seems to have not fallen even once in a day, but I want to be 100% sure.
Answer the question
In order to leave comments, you need to log in
This is fine. When there is nowhere to go (for example, you need to communicate interactively with such a program), this is exactly how they get out of the situation.
By default, you cannot connect to someone else's screen, so from a security point of view, everything is fine.
There are no complaints about stability either.
I have rtorrent and jabber client working in this mode. Uptime will soon exceed 300 days. It hasn’t crashed yet (:
PS. Although if interactive interaction with the server is not expected, then you can run it through nohup.
nohup your_script &
After that won't kill after closing the console.
There are no side effects from screen.
everything was said correctly above, but why would you leave it in screen(_self-written_)? what if he falls? Will you be checking in every hour? configure monit, logs, daemonize, etc
I would make it run through init scripts /etc/rc.d/ and not take a steam bath, even in the same screen'e from your user. So at least when the car is restarted, it will rise by itself
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question