I need a .sh script for linux where I can restart all my CS:2D servers I am hosting with one command. Does someone have a script like this?
Forum
CS2D Scripts I need a something for linux!I need a something for linux!
1 reply 1
I need a .sh script for linux where I can restart all my CS:2D servers I am hosting with one command. Does someone have a script like this?
And its tested and its proven that it works.
Start by creating a new file called 'server1.sh' or 'server2.sh' if you have two servers and so on..
Open server1.sh and type this code in (you might want to modify the code a bit)
1
2
2
cd CS2D/Server1/ ./cs2d_dedicated
Now open server2.sh
and type this code in, same as above, this will CD to your second server directory. Once you've done this.
Create a new file 'start.sh' and place this code in
1
2
3
2
3
cd Desktop/ gnome-terminal -x ./server1.sh gnome-terminal -x ./server2.sh
1
2
2
cd Desktop/ ./start.sh
This only starts the servers.
Hope I helped
1