A Project for Chronicle 4 based on L2JServer.


    FreeBsd 11.1 ./startGameServer.sh wont run

    Share
    avatar
    SubwoO

    Posts : 6
    Join date : 2018-02-19
    Age : 27
    Location : United Kingdom

    FreeBsd 11.1 ./startGameServer.sh wont run

    Post  SubwoO on 20th February 2018, 13:00

    Hello friends i have problem starting gameServer.sh ,when i type ./startGameServer.sh i get output "./startGameServer.sh: ./GameServer_loop.sh: not found" all files have permission "chmod +x" RegisterGameServer.sh and other is working. I searching for solution 2 days.
    startGameServer.sh file config:


    #! /bin/sh

    ./GameServer_loop.sh &

    GameServer_loop.sh file config:

    #!/bin/bash

    # exit codes of GameServer:
    # 0 normal shutdown
    # 2 reboot attempt

    while :; do
    [ -f log/java0.log.0 ] && mv log/java0.log.0 "log/`date +%Y-%m-%d_%H-%M-%S`_java.log"
    [ -f log/stdout.log ] && mv log/stdout.log "log/`date +%Y-%m-%d_%H-%M-%S`_stdout.log"
    java -Xms1024m -Xmx1024m -cp ./../libs/*:L2JLisvus.jar net.sf.l2j.gameserver.GameServer > log/stdout.log 2>&1
    [ $? -ne 2 ] && break
    # /etc/init.d/mysql restart
    sleep 10
    done


    Skype:Robertas-Navickas
    avatar
    Reynald0

    Posts : 30
    Join date : 2015-05-02
    Location : México

    Re: FreeBsd 11.1 ./startGameServer.sh wont run

    Post  Reynald0 on 20th February 2018, 23:42

    write in console:
    Code:

    ./GameServer_loop.sh &

    Press Enter
    avatar
    SubwoO

    Posts : 6
    Join date : 2018-02-19
    Age : 27
    Location : United Kingdom

    FreeBsd 11.1 ./startGameServer.sh wont run

    Post  SubwoO on 21st February 2018, 16:24

    Thank you for your answer , but the problem was in #! /bin/sh
    avatar
    Reynald0

    Posts : 30
    Join date : 2015-05-02
    Location : México

    Re: FreeBsd 11.1 ./startGameServer.sh wont run

    Post  Reynald0 on 21st February 2018, 18:16

    SubwoO wrote:Thank you for your answer , but the problem was in #! /bin/sh
    The file has Windows line breaks that Linux does not recognize, so it marks you error.

    install dos2unix

    Then use:
    Code:

    dos2unix startGameServer.sh GameServer_loop.sh

    You have to do this with all the .sh files, preferably
    This will make the files readable for Linux, then just run the main file

    Code:

    ./startGameServer.sh

    Sponsored content

    Re: FreeBsd 11.1 ./startGameServer.sh wont run

    Post  Sponsored content


      Current date/time is 23rd October 2018, 16:57