We moved our repositories to BitBucket!

If you can't login or you can't register to the forums do not rise an issue, instead please write to support (at) l2jserver.com

Check our wiki!

Report server issues here

Forum has been updated to phpBB 3.2, let's see if this fixes some minor bugs we had.

Thank you for visiting http://www.l2jserver.com/

FreeBsd 11.1 ./startGameServer.sh wont run

Have you created a useful tool? or Do you want to get help building one? This is the right place!
Forum rules
READ NOW: L2j Forums Rules of Conduct
Post Reply
SubwoO
Posts: 3
Joined: Mon Feb 19, 2018 8:53 pm

FreeBsd 11.1 ./startGameServer.sh wont run

Post by SubwoO » Tue Feb 20, 2018 10:58 am

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

User avatar
JMD
Advanced User
Advanced User
Posts: 1411
Joined: Wed Apr 15, 2009 10:07 am
Contact:

Re: FreeBsd 11.1 ./startGameServer.sh wont run

Post by JMD » Tue Feb 20, 2018 2:11 pm

assign more memory to java like:

java -Xms1024m -Xmx2048m

SubwoO
Posts: 3
Joined: Mon Feb 19, 2018 8:53 pm

Re: FreeBsd 11.1 ./startGameServer.sh wont run

Post by SubwoO » Wed Feb 21, 2018 2:25 pm

Thank you for your answer problem was in #! /bin/sh (Solved)

Post Reply