AYUDA - error en script de arranque start.sh

Topic created · 1 Mensajes · 406 Visitas
  • Hola a todos !!!
    Tengo un problema que no puedo arreglar y me resulta muy molesto ya que no me deja abrir mi servidor.
    El error no afecta a las carpetas auth y db, estas dos se conectan bien.

    Imagen del error:
    http://kn3.net/315D57E02F0PNG.html
    *Es el mismo error en Game99 y en los 4 Channels

    Imagenes de mis carpetas:
    http://kn3.net/3298A84C580PNG.html
    *Puse las carpetas mas importantes (pueden pedirme otra de ser necesario)

    Carpetas auth y db:
    http://kn3.net/303BCA0C6B7PNG.html
    *Aparentemente en perfecto funcionamiento

    Codigo de mi script:

    #!/bin/sh
    #Modificado y traducido por yopipe54
    
    dir="/usr/home/game"
    
    startDatabase()
    {
    	echo -e "\033[1;33mCargando Database ...\033[0m"
    	cd $dir/data/db && env LD_32_PRELOAD="/usr/home/game/share/libdb_notxt.so" ./db & sleep 2
    	echo -e "\033[0;32mDatabase iniciada con exito!\033[0m"
    	cd /
    }
    
    startGame99()
    {
    	echo -e "\033[1;33mCargando Game99 ...\033[0m"
    	
    	echo -e "\033[1;33mCore 1 ...\033[0m"
    	cd $dir/game99/core1 && ./game & sleep 2
    	
    	echo -e "\033[1;33mCore 2 ...\033[0m"
    	cd $dir/game99/core2 && ./game & sleep 2
    	
    	echo -e "\033[1;33mCore 3 ...\033[0m"
    	cd $dir/game99/core3 && ./game & sleep 2
    	
    	echo -e "\033[1;33mCore 4 ...\033[0m"
    	cd $dir/game99/core4 && ./game & sleep 2
    	
    	echo -e "\033[1;33mCore 5 ...\033[0m"
    	cd $dir/game99/core5 && ./game & sleep 2
    	
    	echo -e "\033[0;32mGame99 iniciado con exito!\033[0m"
    	cd /
    }
    startChannel1()
    {
    	echo -e "\033[1;33mCargando Channel 1 ...\033[0m"
    	
    	echo -e "\033[1;33mCore 1 ...\033[0m"
    	cd $dir/channel1/core1 && ./game & sleep 2
    	
    	echo -e "\033[1;33mCore 2 ...\033[0m"
    	cd $dir/channel1/core2 && ./game & sleep 2
    	
    	echo -e "\033[1;33mCore 3 ...\033[0m"
    	cd $dir/channel1/core3 && ./game & sleep 2
    	
    	echo -e "\033[1;33mCore 4 ...\033[0m"
    	cd $dir/channel1/core4 && ./game & sleep 2
    	
    	echo -e "\033[1;33mCore 5 ...\033[0m"
    	cd $dir/channel1/core5 && ./game & sleep 2
    	
    	echo -e "\033[0;32mCH1 conectado!\033[0m"
    	cd /
    }
    
    startChannel2()
    {
    	echo -e "\033[1;33mCargando Channel 2 ...\033[0m"
    	
    	echo -e "\033[1;33mCore 1 ...\033[0m"
    	cd $dir/channel2/core1 && ./game & sleep 2
    	
    	echo -e "\033[1;33mCore 2 ...\033[0m"
    	cd $dir/channel2/core2 && ./game & sleep 2
    	
    	echo -e "\033[1;33mCore 3 ...\033[0m"
    	cd $dir/channel2/core3 && ./game & sleep 2
    	
    	echo -e "\033[1;33mCore 4 ...\033[0m"
    	cd $dir/channel2/core4 && ./game & sleep 2
    	
    	echo -e "\033[1;33mCore 5 ...\033[0m"
    	cd $dir/channel2/core5 && ./game & sleep 2
    	
    	echo -e "\033[0;32mCH2 conectado!\033[0m"
    	cd /
    }
    
    startChannel3()
    {
    	echo -e "\033[1;33mCargando Channel 3 ...\033[0m"
    	
    	echo -e "\033[1;33mCore 1 ...\033[0m"
    	cd $dir/channel3/core1 && ./game & sleep 2
    	
    	echo -e "\033[1;33mCore 2 ...\033[0m"
    	cd $dir/channel3/core2 && ./game & sleep 2
    	
    	echo -e "\033[1;33mCore 3 ...\033[0m"
    	cd $dir/channel3/core3 && ./game & sleep 2
    	
    	echo -e "\033[1;33mCore 4 ...\033[0m"
    	cd $dir/channel3/core4 && ./game & sleep 2
    	
    	echo -e "\033[1;33mCore 5 ...\033[0m"
    	cd $dir/channel3/core5 && ./game & sleep 2
    	
    	echo -e "\033[0;32mCH3 conectado!\033[0m"
    	cd /
    }
    
    startChannel4()
    {
    	echo -e "\033[1;33mCargando Channel 4 ...\033[0m"
    	
    	echo -e "\033[1;33mCore 1 ...\033[0m"
    	cd $dir/channel4/core1 && ./game & sleep 2
    	
    	echo -e "\033[1;33mCore 2 ...\033[0m"
    	cd $dir/channel4/core2 && ./game & sleep 2
    	
    	echo -e "\033[1;33mCore 3 ...\033[0m"
    	cd $dir/channel4/core3 && ./game & sleep 2
    	
    	echo -e "\033[1;33mCore 4 ...\033[0m"
    	cd $dir/channel4/core4 && ./game & sleep 2
    	
    	echo -e "\033[1;33mCore 5 ...\033[0m"
    	cd $dir/channel4/core5 && ./game & sleep 2
    	
    	echo -e "\033[0;32mCH4 conectado!\033[0m"
    	cd /
    }
    
    startLoginServer()
    {
    	echo -e "\033[1;33mCargando LoginServer ...\033[0m"
    	cd $dir/data/auth && ./auth & sleep 2
    	echo -e "\033[0;32mLoginServer iniciado con exito!\033[0m"
    	cd /
    }
    
    clear
    echo -e "\033[0;36m[Abriendo Servidor]\n
    Cuantos Channels quieres abrir?\n
    1 - Abrir 1 Channel\n
    2 - Abrir 2 Channels\n
    3 - Abrir 3 Channels\n
    4 - Abrir 4 Channels\n\033[0m"
    
    read op
    case $op in
    	1*)
    		startDatabase
    		startGame99
    		startChannel1
    		startLoginServer
    	;;
    	
    	2*)
    		startDatabase
    		startGame99
    		startChannel1
    		startChannel2
    		startLoginServer
    	;;
    	
    	3*)
    		startDatabase
    		startGame99
    		startChannel1
    		startChannel2
    		startChannel3
    		startLoginServer
    	;;
    	
    	4*)
    		startDatabase
    		startGame99
    		startChannel1
    		startChannel2
    		startChannel3
    		startChannel4
    		startLoginServer
    	;;
    esac
    exit
    

    Muchas Gracias de antemano.