Forum

> > CS2D > Servers > Add restart cs2d server to cron
ForenübersichtCS2D-Übersicht Servers-ÜbersichtEinloggen, um zu antworten

Englisch Add restart cs2d server to cron

3 Antworten
Zum Anfang Vorherige 1 Nächste Zum Anfang

alt Add restart cs2d server to cron

IWhoopedPythagoras
BANNED Off Offline

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

alt Re: Add restart cs2d server to cron

Banaan
User Off Offline

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

alt Re: Add restart cs2d server to cron

MostAfa
User Off Offline

Zitieren
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.
Zum Anfang Vorherige 1 Nächste Zum Anfang
Einloggen, um zu antworten Servers-ÜbersichtCS2D-ÜbersichtForenübersicht