Since I'm very beginner to ssh based servers or VPS, whatever, I need some good advices. I know the most part of the basics so my doubt is not that how to start a server or similar.
I have 3 servers running on the VPS. Here is it's file tree :
The bash script code is :
1
2
3
4
5
6
7
2
3
4
5
6
7
#!/bin/bash while : do /home/cs2d/run sleep 1 done
It checks if the server process is "on" then if it isn't it launches the server. It is very effective !
What I do to launch the server is, type "screen", to open a new screen. Then type "sudo sh /home/scripts/auto.sh". Then press Ctrl + C to open a new window and just do same i did before, just change the directory of bash file to execute to bash script of second server. Repeat the last process more 1 time, changing the bash script to run to the bash file of third server.
Resuming, I open a screen session, launch the server script and open another window to other 2 servers launching its bash script.
Actually I want to know if I'm starting/launching the server with the lighter way. If there is better ways, I want to see the console output and check if the server is online/running every 10 seconds or close.
And since I'm only at my personal PC at weekends, in most week days if I'm online is because I'm on a library. Since most of library's i go have proxy it is hard to use putty or similar. So I would like if someone could help or even make me a very simple cs2d server managing tool through HTML and PHP like cs2d we interface but a lot simpler. I just want something where I can write a password and if it's correct I can kill the server process leading to the server restart ( bash script ). It doesn't needs to be fancy
Also take this opportunity to ask if there is a way to check if the client has a specific server resource ( downloaded from servertransfer.lst )
We'll that's it, sorry for the dictionary I wrote here, just wanted to be detailed
Thanks !
edited 1×, last 10.02.14 10:38:14 pm