Код: Выделить всё
# проверяем, как давно выполнялось последнее задание
if test -f $marker
then
# определяем время на час назад, в разных системах по разному
if [ `uname` = "Linux" ]
then
params=--date=-d 1 hours ago
else
params="-v-1H"
fi
executed=`cat $marker`
if [ `date $params +%Y%m%d%H%M%S` -ge $executed ]
then
echo "" >> $RootDir/demon.log
echo "`date +%Y-%m-%d` in `date +%H:%M:%S`: php-cgi auto killed, no executed tasks more than one hour" >> $RootDir/demon.log
echo "" >> $RootDir/demon.log
killall `basename $PHP_BIN`
fi
fi
# delete tmp file
rm -f $TmpFile
вот так ошибку не выдает
Код: Выделить всё
[root@isp bill.systemhelp.ru]# sh /var/www/systemhelp/data/www/bill.systemhelp.ru/scripts/billing/check.cron.run.sh
[root@isp bill.systemhelp.ru]#
задание все равно не выполняется
Отправлено спустя 3 минуты 10 секунд:
demon.log
Код: Выделить всё
2015-01-26 in 02:55:01: php-cgi auto killed, no executed tasks more than one hour
Use php in (/usr/bin/php-cgi)
X-Powered-By: Joonte Billing System (http://www.joonte.com)
Cache-Control: no-cache, must-revalidate
Set-Cookie: lang=ru
Content-type: text/plain; charset=utf-8
2015-01-26 in 03:00:01: Task #0000281 have executed [ServiceCreate]
2015-01-26 in 03:00:01: Task #0000281 have executed [ServiceCreate]
2015-01-26 in 03:00:01: Task #0000281 have executed [ServiceCreate]
2015-01-26 in 03:00:01: Task #0000281 have executed [ServiceCreate]
2015-01-26 in 03:00:01: Task #0000281 have executed [ServiceCreate]
2015-01-26 in 03:00:01: Task #0000002 have executed [Temp]
2015-01-26 in 03:00:02: Task #0000003 have executed [BackUp]
2015-01-26 in 03:00:02: Task #0000004 have executed [Logs]
2015-01-26 in 03:00:02: Task #0000005 have executed [TicketsMessages]
2015-01-26 in 03:00:02: Task #0000013 have executed [CheckEmail]
2015-01-26 in 03:00:02: Task #0000060 have executed [HostingServersQuestioning] [systemhelp.ru]
2015-01-26 in 03:00:02: Waiting 59 seconds...
2015-01-26 in 03:01:01: Task #0000075 have executed [DSCalculateNumServers]
2015-01-26 in 03:01:01: Task #0000064 have executed [QIWI]
2015-01-26 in 03:01:01: Waiting 59 seconds...
debag.log
http://bill.systemhelp.ru/debag.zip