Forum

> > CS2D > Servers > Add restart cs2d server to cron
Forums overviewCS2D overview Servers overviewLog in to reply

English Add restart cs2d server to cron

3 replies
To the start Previous 1 Next To the start

old Add restart cs2d server to cron

IWhoopedPythagoras
BANNED Off Offline

Quote
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?

old Re: Add restart cs2d server to cron

Banaan
User Off Offline

Quote
To check if a process is running, use
1
pidof process_name
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?

old Re: Add restart cs2d server to cron

MostAfa
User Off Offline

Quote
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.
To the start Previous 1 Next To the start
Log in to reply Servers overviewCS2D overviewForums overview