- Хроники
- Interlude
- Исходники
- Отсутствуют
- Сборка
- pwsoft, lucera, l2j
Помогите пожалуйста
на Centos 7 сборка pwsoft
выставил права
chmod +rwx start.sh
chmod +rwx LoginServer_loop.sh
[root@linode login]# ls
config it_mantaray_login.jar libs log LoginServer_loop.sh servername.xml start.sh
[root@linode login]# sh ./start.sh
выдает ошибку
./start.sh: line 2: $'\r': command not found
./start.sh: ./LoginServer_loop.sh: /bin/bash^M: bad interpreter: No such file or directory
./start.sh: line 3: $'\r': command not found
./start.sh: line 4: $'\r': command not found
./start.sh: line 5: $'\r': command not found
./start.sh: line 6: $'\r': command not found
LoginServer_loop.sh
на Centos 7 сборка pwsoft
выставил права
chmod +rwx start.sh
chmod +rwx LoginServer_loop.sh
[root@linode login]# ls
config it_mantaray_login.jar libs log LoginServer_loop.sh servername.xml start.sh
[root@linode login]# sh ./start.sh
выдает ошибку
./start.sh: line 2: $'\r': command not found
./start.sh: ./LoginServer_loop.sh: /bin/bash^M: bad interpreter: No such file or directory
./start.sh: line 3: $'\r': command not found
./start.sh: line 4: $'\r': command not found
./start.sh: line 5: $'\r': command not found
./start.sh: line 6: $'\r': command not found
LoginServer_loop.sh
Код:
#!/bin/bash
err=1
until [ $err == 0 ];
do
java -Dfile.encoding=UTF-8 -Xmx256m -cp ./it_mantaray_login.jar:libs/* net.sf.l2j.loginserver.L2LoginServer > log/stdout.log 2>&1
err=$?
# /etc/init.d/mysql restart
sleep 10;
done