does anyone run vnstat in 2010. I just can't get it to work properly. I can't get it to update the database without going to the superuser console and forcing it to update with vnstat -u. in all previous installations it has worked fine. It does appear in the manage system services list but is listed as stopped and I can't get it to start. I have read somewhere that it should update about every five mins. Here is the output of etc/cron.d/vnstat cron
# run vnstat update every 5 minutes if installed
*/5 * * * * root if [ -x /usr/bin/vnstat ] && [ `ls /var/lib/vnstat/ | wc -l` -ge 1 ]; then /usr/bin/vnstat -u; fi
and the output of usr/sbin/vnstat.cron
#!/bin/bash
# this script (/usr/sbin/vnstat.cron) reads /etc/sysconfig/vnstat
# to start /usr/bin/vnstat.
# example for /etc/sysconfig/vnstat:
# VNSTAT_OPTIONS="-u -i eth0"
# see also: vnstat(1)
VNSTAT_CONF=/etc/sysconfig/vnstat
if [ ! -f ]; then
exit 0
fi
. $VNSTAT_CONF
/usr/bin/vnstat $VNSTAT_OPTIONS
any info would be appreciated