Forum

> > CS2D > Scripts > I need a something for linux!
ForenübersichtCS2D-Übersicht Scripts-ÜbersichtEinloggen, um zu antworten

Englisch I need a something for linux!

1 Antwort
Zum Anfang Vorherige 1 Nächste Zum Anfang

alt I need a something for linux!

kch
User Off Offline

Zitieren
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?

alt Re: I need a something for linux!

Sisla
User Off Offline

Zitieren
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
Zum Anfang Vorherige 1 Nächste Zum Anfang
Einloggen, um zu antworten Scripts-ÜbersichtCS2D-ÜbersichtForenübersicht