Forum

> > CS2D > Servers > 2 same proccess/server in a Linux VPS
Forums overviewCS2D overview Servers overviewLog in to reply

English 2 same proccess/server in a Linux VPS

3 replies
To the start Previous 1 Next To the start

old 2 same proccess/server in a Linux VPS

ReVoltage
User Off Offline

Quote
Hello us ,
I want to make 2 servers in a single Linux VPS.
Then I want to use a script like this in my VPS:
1
2
3
4
5
6
ps cax | grep cs2d_dedicated > /dev/null
if [ $? -eq 0 ]; then
echo "Server is running."
else
echo "Server is not running."
fi
That script only able to detect 1 proccess.
Is it possible to make 1 script only detect 1 process? Because I want to run 2 same proccess in a single VPS.
So it will be 1 script for my first server, and 1 script for my second server.
So if it possible, can you tell me how?
If it not, is there any other solution about this problem?

Thanks before..
To the start Previous 1 Next To the start
Log in to reply Servers overviewCS2D overviewForums overview