Xonotic Forums
[SOLVED] Server stops when I close command prompt on my PC - Printable Version

+- Xonotic Forums (https://forums.xonotic.org)
+-- Forum: Support (https://forums.xonotic.org/forumdisplay.php?fid=3)
+--- Forum: Xonotic - Server Administration (https://forums.xonotic.org/forumdisplay.php?fid=16)
+--- Thread: [SOLVED] Server stops when I close command prompt on my PC (/showthread.php?tid=8340)



Server stops when I close command prompt on my PC - Jewel - 05-31-2020

I just got a server set up running on my Ubuntu server but I hit a bump when I closed the command prompt I used to ssh into my server. For some reason my game server requires me to leave the command prompt up on my personal Windows computer to keep the server open. So if I boot up the dedicated server on the machine through my personal computer, closing the command prompt closes the game server. I've got a few Quake Live servers set up on the same machine and they don't do this. Any idea what I could do to solve the problem?

Note: I'm really new and suck with this server stuff, especially Linux, so it's probably something on my end I'm not noticing or understanding and messed up.

Solution: Made a service for it.


RE: Server stops when I close command prompt on my PC - Lyberta - 06-01-2020

I guess the usual way in Linux is to configure "systemd unit". That way your game server will be run by systemd as a service.


RE: Server stops when I close command prompt on my PC - Jewel - 06-01-2020

(06-01-2020, 01:31 AM)Lyberta Wrote: I guess the usual way in Linux is to configure "systemd unit". That way your game server will be run by systemd as a service.

Yeah it took a while but my friend was able to help me with this once we realized that was the problem. We just copied our service we used for Quake Live and modified it accordingly for Xonotic and now it's working. Thank you though for the response.