Hey, sorry for the slow reply. I've been testing to see how this works with the update.
I'm a bit of a noob on linux so it might be better to wait to see if someone more experienced thinks what I'm doing isn't stupid.
First of all, I've read that you should never run your server as root, so log into an ssh account that isn't root.
then fill in your password. This should open a screen session.
this way runs the task as the user on my machine so I guess I'd recommend this.
There's another way of doing it, I got this method from the tf2 wiki. However, it runs the process as root so I'm not sure if it's the best to be using.
Code: Select all
sudo screen -m -S ark ./server_start.sh
it then prompts you for a password, fill that in and wait a couple of minutes and your server should be running nicely.
If you want to check that your server is running and under what user, use this
or
Then, of course, if you want to kill your server, make sure to save it via the in game console, then use the PID of ShooterGameServ...like this:
Code: Select all
kill -KILL <PID>
e.g. kill -KILL 12345
I hope this helps. Btw, if anyone has any better way of shutting down a server that auto saves it, I'd like to know about it.