Forum

> > CS2D > Scripts > I need a something for linux!
Forums overviewCS2D overview Scripts overviewLog in to reply

English I need a something for linux!

1 reply
To the start Previous 1 Next To the start

old I need a something for linux!

kch
User Off Offline

Quote
Hello there,

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?

old Re: I need a something for linux!

Sisla
User Off Offline

Quote
It is possible.
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
cd CS2D/Server1/
./cs2d_dedicated
Change the change directory path to your server folder ( the first server ).
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
cd Desktop/
gnome-terminal -x ./server1.sh
gnome-terminal -x ./server2.sh
Now, open the terminal up and type in
1
2
cd Desktop/
./start.sh
Yes, in fact i have the CS2D folder with servers on my desktop, server1 and server2 shell files are on my desktop too and so is start.sh (This means you must edit the CD commands to go to your server folder that contains the 'server_dedicated' file.
This only starts the servers.
Hope I helped
To the start Previous 1 Next To the start
Log in to reply Scripts overviewCS2D overviewForums overview