Hello everyone,
i'd like to ask you a question because i really don't know what to do right now.
I run a gameserver on my box and since it was a bit outdated i decided to reinstall it from scratch in parallel so not to take down the server for too long (first world wide hence i need the maximum uptime).
tonight i was finally done after one month of work (because i don't have much time during freetime, this is nearly a 5 hours work) and i had this structure:
~/srcds_1/css (the outdated one)
~/gameserver/css (the updated one)
inside the css folder i have the scripts that stop and restart the server, hence my plan was:
stop the server, go back one folder, rename css into old_css, move the new css folder into the current folder, go inside it, restart the server.
unfortunately something went really wrong and the newest css folder simply disappeared whilst the old one is still there. i really don't know where i should look to find it so i'd really appreciate if somebody could help me.
i copied the whole output of the console so you may figure out what's wrong or how to find it if possible. (the error i think is that i typed "&" instead of "&&"
output:
Code:
server1@elite-hunterz:~/gameserver/css$ cd cstrike/
server1@elite-hunterz:~/gameserver/css/cstrike$ cd maps
server1@elite-hunterz:~/gameserver/css/cstrike/maps$ ls
cs_assault.bsp cs_compound.txt cs_italy.nav cs_office.bsp de_aztec.txt de_chateau.nav de_dust2.bsp de_inferno.txt de_piranesi.nav de_prodigy.bsp de_tides.txt soundcache
cs_assault.nav cs_havana.bsp cs_italy.txt cs_office.nav de_cbble.bsp de_chateau.txt de_dust2.nav de_nuke.bsp de_piranesi.txt de_prodigy.nav de_train.bsp test_hardware.bsp
cs_assault.txt cs_havana.nav cs_militia.bsp cs_office.txt de_cbble.nav de_dust.bsp de_dust2.txt de_nuke.nav de_port.bsp de_prodigy.txt de_train.nav test_speakers.bsp
cs_compound.bsp cs_havana.txt cs_militia.nav de_aztec.bsp de_cbble.txt de_dust.nav de_inferno.bsp de_nuke.txt de_port.nav de_tides.bsp de_train.txt zm_cbble_b3.bsp
cs_compound.nav cs_italy.bsp cs_militia.txt de_aztec.nav de_chateau.bsp de_dust.txt de_inferno.nav de_piranesi.bsp de_port.txt de_tides.nav graphs
server1@elite-hunterz:~/gameserver/css/cstrike/maps$ cp -R ~/srcds_1/css/cstrike/maps/* ./
server1@elite-hunterz:~/gameserver/css/cstrike/maps$ cd
server1@elite-hunterz:~$ cd srcds_1/css/
server1@elite-hunterz:~/srcds_1/css$ ./stop & cd .. & mv css old_css & mv ~/gameserver/css ./ & cd css & ./restart
[1] 23399
[2] 23400
[3] 23401
[4] 23402
[5] 23403
bash: cd: css: No such file or directory
There is a screen on:
There is a screen on:
23646.css-server (12/01/11 18:45:52) (Detached)
1 Socket in /var/run/screen/S-server1.
23646.css-server (12/01/11 18:45:52) (Detached)
1 Socket in /var/run/screen/S-server1.
./stop: line 4: kill: (23415) - No such process
./stop: line 4: kill: (23412) - No such process
./stop: line 4: kill: (23415) - No such process
No Sockets found in /var/run/screen/S-server1.
No Sockets found in /var/run/screen/S-server1.
Starting Cs:Source Server #1
[1] Exit 1 ./stop
[2] Done cd ..
[3] Done mv css old_css
[4]- Done mv ~/gameserver/css ./
[5]+ Exit 1 cd css
server1@elite-hunterz:~/srcds_1/css$ ls
InstallRecord.blob bin core cstrike hl2 libcurl.so.4 libcurl.so.4.2.0 old_css restart srcds_linux srcds_run start steam_appid.txt stop
server1@elite-hunterz:~/srcds_1/css$ ps x
PID TTY STAT TIME COMMAND
22376 pts/5 S 0:00 su server1
22377 pts/5 S 0:00 bash
23421 ? Ss 0:00 SCREEN -A -m -d -S css-server ./srcds_run -game cstrike +map zm_cbble_b3 -maxplayers 64 -ip 85.114.140.30 -port 27015 -pingboost 1
23422 pts/4 Ss+ 0:00 /bin/sh ./srcds_run -game cstrike +map zm_cbble_b3 -maxplayers 64 -ip 85.114.140.30 -port 27015 -pingboost 1
23426 pts/4 Sl+ 0:00 ./srcds_linux -game cstrike +map zm_cbble_b3 -maxplayers 64 -ip 85.114.140.30 -port 27015 -pingboost 1
23448 pts/5 R+ 0:00 ps x
server1@elite-hunterz:~/srcds_1/css$ ls
InstallRecord.blob bin core cstrike hl2 libcurl.so.4 libcurl.so.4.2.0 old_css restart srcds_linux srcds_run start steam_appid.txt stop
server1@elite-hunterz:~/srcds_1/css$ cd ..
server1@elite-hunterz:~/srcds_1$ ./stop & cd .. & mv css old_css & mv ~/gameserver/css ./ & cd css & ./restart
server1@elite-hunterz:~/srcds_1$ cd ..
server1@elite-hunterz:~$ cd gameserver/css
bash: cd: gameserver/css: No such file or directory
server1@elite-hunterz:~$ cd gameserver/
server1@elite-hunterz:~/gameserver$ ls
InstallRecord.blob hl2 hldsupdatetool.bin manual_update readme.txt steam test1.so test2.so test3.so
server1@elite-hunterz:~/gameserver$ cd
server1@elite-hunterz:~$ cd srcds_1/
server1@elite-hunterz:~/srcds_1$ ls
InstallRecord.blob attachment.php css hl2 hldsupdatetool.bin manual_update readme.txt steam test1.so test2.so test3.so update
server1@elite-hunterz:~/srcds_1$ ls
InstallRecord.blob attachment.php css hl2 hldsupdatetool.bin manual_update readme.txt steam test1.so test2.so test3.so update
server1@elite-hunterz:~/srcds_1$ ls -la
total 18948
drwxr-xr-x 4 server1 server1 4096 Nov 17 13:59 .
drwxr-xr-x 6 server1 server1 4096 Nov 11 17:24 ..
-rwxr-xr-x 1 server1 server1 1660 Nov 17 13:59 InstallRecord.blob
-rw-r--r-- 1 server1 server1 1423800 Apr 15 2011 attachment.php
drwxr-xr-x 6 server1 server1 4096 Dec 7 19:30 css
drwxr-xr-x 5 server1 server1 4096 Aug 18 2010 hl2
-rwxr-xr-x 1 server1 server1 3513408 Aug 18 2010 hldsupdatetool.bin
-rwxr-xr-x 1 server1 server1 134 Jul 13 18:57 manual_update
-rw-r--r-- 1 server1 server1 3413 Aug 18 2010 readme.txt
-rwxr-xr-x 1 server1 server1 5265976 Jul 11 23:54 steam
-r-xr-xr-x 1 server1 server1 358301 Jul 25 2008 test1.so
-r-xr-xr-x 1 server1 server1 453372 Jul 25 2008 test2.so
-r-xr-xr-x 1 server1 server1 8306090 Jul 25 2008 test3.so
-rwxr-xr-x 1 server1 server1 162 Jul 13 19:09 update
server1@elite-hunterz:~/srcds_1$ cd css
server1@elite-hunterz:~/srcds_1/css$ ls
InstallRecord.blob bin core cstrike hl2 libcurl.so.4 libcurl.so.4.2.0 old_css restart srcds_linux srcds_run start steam_appid.txt stop
server1@elite-hunterz:~/srcds_1/css$ ls -la
total 2300
drwxr-xr-x 6 server1 server1 4096 Dec 7 19:30 .
drwxr-xr-x 4 server1 server1 4096 Nov 17 13:59 ..
-rwxr-xr-x 1 server1 server1 186 Oct 14 00:23 InstallRecord.blob
drwxr-xr-x 2 server1 server1 4096 Nov 8 00:05 bin
-rw------- 1 server1 server1 33677312 Oct 14 00:23 core
drwxr-xr-x 19 server1 server1 4096 Nov 8 00:05 cstrike
drwxr-xr-x 4 server1 server1 4096 Oct 13 23:46 hl2
-rw-r--r-- 1 server1 server1 17 Oct 13 23:46 libcurl.so.4
-rw-r--r-- 1 server1 server1 300951 Oct 13 23:46 libcurl.so.4.2.0
drwxr-xr-x 5 server1 server1 4096 Oct 29 17:14 old_css
-rwxr-xr-x 1 server1 server1 25 Oct 14 00:08 restart
-rwxr-xr-- 1 server1 server1 7004 Oct 13 23:46 srcds_linux
-rwxr-xr-- 1 server1 server1 10712 Oct 13 23:46 srcds_run
-rwxr-xr-x 1 server1 server1 187 Oct 14 01:15 start
-rw-r--r-- 1 server1 server1 5 Dec 7 19:31 steam_appid.txt
-rwxr-xr-x 1 server1 server1 114 Oct 14 00:08 stop
server1@elite-hunterz:~/srcds_1/css$ cd ..
server1@elite-hunterz:~/srcds_1$ ls
InstallRecord.blob attachment.php css hl2 hldsupdatetool.bin manual_update readme.txt steam test1.so test2.so test3.so update
server1@elite-hunterz:~/srcds_1$
i attached a picture with the structure of server1
E: since i really need this and i really don't want to spend another 5 hours building this, if you manage to help me out of this and you have paypal i'll donate 10 euros to you.