Pr server not start in centos linux

Post Reply
rebane24
Posts: 232
Joined: 2013-09-01 00:20

Pr server not start in centos linux

Post by rebane24 »

Image

was useing this setup
https://www.realitymod.com/forum/f109-p ... linux.html

server start up script is that
#! /bin/sh
DAM=$(exec date +%H:%M:%S)
DAY=$(exec date +%D)
echo "[$DAY $DAM] Bf2 Server Starting" >> restarts.log
echo To stop the restarting press Ctrl+C when the server is being restarted
echo
DAM=$(exec date +%H:%M:%S)
DAY=$(exec date +%D)
trap 'echo; echo [$DAY $DAM] $SRV Server Restarter has been STOPPED! >> restarts.log; exit 1' 2
C1=0
while true
do
C1=$((C1+=1))
# Modify the line bellow to match your server execution command line
./start_pr.sh +modPath mods/pr
DAM=$(exec date +%H:%M:%S)
DAY=$(exec date +%D)
echo "[$DAY $DAM] PR server restarted $C1 time(s)!" >> restarts.log
sleep 10
done

ANY IDEA?
Last edited by rebane24 on 2016-03-11 20:24, edited 4 times in total.
*PREC*DontFakit-EST
*********************
Rangers INF Squad Leader
*********************
*PREC* Community Administrator
http://www.precgaming.com
*********************
rebane24
Posts: 232
Joined: 2013-09-01 00:20

Re: Pr server not start in centos linux

Post by rebane24 »

new error
Image
*PREC*DontFakit-EST
*********************
Rangers INF Squad Leader
*********************
*PREC* Community Administrator
http://www.precgaming.com
*********************
rebane24
Posts: 232
Joined: 2013-09-01 00:20

Re: Pr server not start in centos linux

Post by rebane24 »

That kind error i have!
-bash-4.1$ ./start_pr.sh
-bash: ./start_pr.sh: /bin/sh^M: bad interpreter: No such file or directory.
what i do ?
*PREC*DontFakit-EST
*********************
Rangers INF Squad Leader
*********************
*PREC* Community Administrator
http://www.precgaming.com
*********************
moozery
Posts: 23
Joined: 2010-10-31 15:01

Re: Pr server not start in centos linux

Post by moozery »

Code: Select all

#! /bin/sh
DAM=$(exec date +%H:%M:%S)
DAY=$(exec date +%D)
echo "[$DAY $DAM] Bf2 Server Starting" >> restarts.log
echo To stop the restarting press Ctrl+C when the server is being restarted
echo
DAM=$(exec date +%H:%M:%S)
DAY=$(exec date +%D)
trap 'echo; echo [$DAY $DAM] $SRV Server Restarter has been STOPPED! >> restarts.log; exit 1' 2
C1=0
while true
do
C1=$((C1+=1))
# Modify the line bellow to match your server execution command line
./start[color=Red][b]_pr[/b][/color].sh +modPath mods/pr
DAM=$(exec date +%H:%M:%S)
DAY=$(exec date +%D)
echo "[$DAY $DAM] PR server restarted $C1 time(s)!" >> restarts.log
sleep 10
done
Try removing the red part, so that it's just "./start.sh" instead of "./start_pr.sh"
Post Reply

Return to “General Technical Support”