[BlueOnyx:18212] Re: Webalizer on 5108R fails to update

Chris Gebhardt - VIRTBIZ Internet cobaltfacts at virtbiz.com
Thu Aug 20 20:30:05 -05 2015


On 8/20/2015 3:55 PM, Larry Smith wrote:
> Chris,
>
>    It appears the web.log is _not_ updating.  The timestamp shown is May 6,
> and checking my servers here, that file is updated when the logrotate and end
> of day stuff runs. (per vsite).

Thanks Larry,
So that's interesting.   What do we need to be looking for in terms of 
making sure that is fixed?

Here's the logrotate script in cron.daily:
-rwxr-xr-x 1 root root 196 Jul 18  2013 logrotate

#!/bin/sh

/usr/sbin/logrotate /etc/logrotate.conf >/dev/null 2>&1
EXITVALUE=$?
if [ $EXITVALUE != 0 ]; then
     /usr/bin/logger -t logrotate "ALERT exited abnormally with 
[$EXITVALUE]"
fi
exit 0

If I run the script manually, it exits pretty quickly and prints this in 
/var/log/messages:
Aug 20 20:25:00 hosting1 logrotate: ALERT exited abnormally with [1]

My understanding is that's because we've already done a log rotation today.

-- 
Chris Gebhardt
VIRTBIZ Internet Services
Access, Web Hosting, Colocation, Dedicated
www.virtbiz.com | toll-free (866) 4 VIRTBIZ



More information about the Blueonyx mailing list