Nee help with CentOS.
#4

Umm... You need to be in the same directory where restart.sh is, or else you will get that warning.

PS: Try changing restart.sh to this:

Код:
#!/bin/sh
log=samp.log
dat=`date`
samp="/root/samp03/samp03svr"
cd /root/samp03

echo "${dat} watchdog script starting." >>${log}
while true; do
echo "${dat} Server exited, restarting..." >>${log}
mv /root/samp03/server_log.txt /root/samp03/logs/server_log.`date '+%m%d%y%H%M%S'`
${samp} >> $log
sleep 2
done
Reply


Messages In This Thread
Nee help with CentOS. - by RaiNyDayS - 07.11.2013, 14:08
Re: Nee help with CentOS. - by HyDrAtIc - 07.11.2013, 14:38
Re: Nee help with CentOS. - by RaiNyDayS - 07.11.2013, 16:17
Re: Nee help with CentOS. - by BlueBaron - 07.11.2013, 17:31
Re: Nee help with CentOS. - by RaiNyDayS - 07.11.2013, 17:51
Re: Nee help with CentOS. - by Mark™ - 07.11.2013, 17:58
Re: Nee help with CentOS. - by linuxthefish - 07.11.2013, 19:44
Re: Nee help with CentOS. - by FiReMaNStone - 07.11.2013, 20:23
Re: Nee help with CentOS. - by PakistaniBaba - 07.11.2013, 20:33
Re: Nee help with CentOS. - by RaiNyDayS - 07.11.2013, 21:28

Forum Jump:


Users browsing this thread: 1 Guest(s)