CS2D
Servers Add restart cs2d server to cron Add restart cs2d server to cron
3 replies Hi, i'm looking for a script on CentOS linux to restart my cs2d servers when they're offline due to some reason.
Adding the job is not the problem, but checking wether my servers are in the "ps aux" list is.
I have multiple servers started as a root, and i want them all to be checked.
2nd question:
I have a remote VPS, and i want other people to be able to log in via ssh and setup/create a cs2d server. I don't want them to have root and mess with other processes that do not belong to that user.
How do i do this? To check if a process is running, use If the process is running, it will print the pid, if it's not it will print an empty line.
2nd answer: maybe something like rssh, chroot or SELinux? 1st Question: I think there's a script to put servers up automatically, but sorry no idea how. (Look at
Banaan's Post).
2nd Question: Perhaps something like http://ejext.tk/ ?
Control Panel hosting made using Php script.
PS: Not trying to advertise, just showing him an example. I think that doesn't allow players to create a server themselves, right?