
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
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
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..