Forum

> > CS2D > Servers > The server shuts down when I close PuTTY
Forums overviewCS2D overview Servers overviewLog in to reply

English The server shuts down when I close PuTTY

15 replies
To the start Previous 1 Next To the start

old The server shuts down when I close PuTTY

Kolia_rus
Security Supporter Off Offline

Quote
Hi. I decided to re-create my server. Now I chose the Debian 10 system, but encountered a problem. When I close the PuTTY terminal, the server stops working. I'm not running the server under root.

This is what do I do:
1
2
cd /usr/games
./cs2d_dedicated

Should I use special characters after ./cs2d_dedicated?

old Re: The server shuts down when I close PuTTY

Kolia_rus
Security Supporter Off Offline

Quote
@user G3tWr3ck3d: go type messages elsewhere or continue upping my topic.

@user BcY: thank you very much, but now I cannot see the server status through terminal: messages about current events (e.g. chat messages, U.S.G.N status updated) are not sent. Is there a way to fix this?

old Re: The server shuts down when I close PuTTY

Maksim_KoToB
User Off Offline

Quote
user Kolia_rus has written
You mean the GNOME interface through mstsc? Are there other methods to solve the problem? For me it is inconvenient to send commands through it. Lags, lags, lags...


Screen or GNU Screen is a terminal multiplexer. In other words, it means that you can start a screen session and then open any number of windows (virtual terminals) inside that session. Processes running in Screen will continue to run when their window is not visible even if you get disconnected.

old Re: The server shuts down when I close PuTTY

Kolia_rus
Security Supporter Off Offline

Quote
user BcY has written
Start your server with nohup.

1
nohup ./cs2d_dedicated &


oh lol, now I dont understand how does it work: my server has been shutted down just now, and in U.S.G.N its status is marked as 'timeout'.

user Maksim_KoToB has written
user Kolia_rus has written
You mean the GNOME interface through mstsc? Are there other methods to solve the problem? For me it is inconvenient to send commands through it. Lags, lags, lags...


Screen or GNU Screen is a terminal multiplexer. In other words, it means that you can start a screen session and then open any number of windows (virtual terminals) inside that session. Processes running in Screen will continue to run when their window is not visible even if you get disconnected.


That is, should I connect via mstsc and start the terminal through GNOME (just about)? Really no other solutions? My server is lagging while it is launched graphically.

---
EDIT

This is not an error, I guess?
1
2
3
cs2d@koliarus1:/usr/games$ nohup ./cs2d_dedicated &
[1] 24654
cs2d@koliarus1:/usr/games$ nohup: ignoring input and appending output to '/home/cs2d/nohup.out'

old Re: The server shuts down when I close PuTTY

Maksim_KoToB
User Off Offline

Quote
user Kolia_rus has written
user BcY has written
Start your server with nohup.

1
nohup ./cs2d_dedicated &


oh lol, now I dont understand how does it work: my server has been shutted down just now, and in U.S.G.N its status is marked as 'timeout'.

user Maksim_KoToB has written
user Kolia_rus has written
You mean the GNOME interface through mstsc? Are there other methods to solve the problem? For me it is inconvenient to send commands through it. Lags, lags, lags...


Screen or GNU Screen is a terminal multiplexer. In other words, it means that you can start a screen session and then open any number of windows (virtual terminals) inside that session. Processes running in Screen will continue to run when their window is not visible even if you get disconnected.


That is, should I connect via mstsc and start the terminal through GNOME (just about)? Really no other solutions? My server is lagging while it is launched graphically.
[/code]

Use PuTTY
and install the screen (if missing)
use the commands.

old Re: The server shuts down when I close PuTTY

VADemon
User Off Offline

Quote
I suggest you to use and learn tmux, but screen is very simple if that's all you need:
•
screen -S cs2d
- start a new console session named "cs2d"
•
screen -r <pid/name>
or
screen -r cs2d
- reconnect to console
• CTRL+A then CTRL+D - "detach" from currently open console. It will continue to run on the server in background
•
screen -list
- lists all screens by your user.

Now if you detach from screen and close Putty (ssh client) your server will not shutdown. √
To the start Previous 1 Next To the start
Log in to reply Servers overviewCS2D overviewForums overview