Date: Wed, 20 Feb 2008 12:40:39 GMT From: Randy Pratt <bsd-unix@embarqmail.com> To: freebsd-gnats-submit@FreeBSD.org Subject: ports/120880: [PATCH] net/vnstat doc/vnstat-cron has wrong entries Message-ID: <200802201240.m1KCedld016342@www.freebsd.org> Resent-Message-ID: <200802201250.m1KCo1fg016196@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 120880 >Category: ports >Synopsis: [PATCH] net/vnstat doc/vnstat-cron has wrong entries >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Wed Feb 20 12:50:01 UTC 2008 >Closed-Date: >Last-Modified: >Originator: Randy Pratt >Release: 6.3-STABLE >Organization: >Environment: FreeBSD kt.weeeble.com 6.3-STABLE FreeBSD 6.3-STABLE #0: Thu Feb 14 16:02:22 EST 2008 rpratt@kt.weeeble.com:/usr/obj/usr/src/sys/CUSTOM i386 >Description: Suggested entry for /etc/crontab shows wrong paths. cat /usr/local/share/doc/vnstat/vnstat-cron */5 * * * * root if [ -x /usr/bin/vnstat ] && [ `ls /var/lib/vnstat/ | wc -l` -ge 1 ]; then /usr/bin/vnstat -u; fi should be: */5 * * * * root if [ -x /usr/local/bin/vnstat ] && [ `ls /var/db/vnstat/ | wc -l` -ge 1 ]; then /usr/local/bin/vnstat -u; fi >How-To-Repeat: See problem description. >Fix: add a patch to files/ --- vnstat-cron.orig 2008-02-20 07:25:56.000000000 -0500 +++ vnstat-cron 2008-02-20 07:26:55.000000000 -0500 @@ -1 +1 @@ -*/5 * * * * root if [ -x /usr/bin/vnstat ] && [ `ls /var/lib/vnstat/ | wc -l` -ge 1 ]; then /usr/bin/vnstat -u; fi +*/5 * * * * root if [ -x /usr/local/bin/vnstat ] && [ `ls /var/db/vnstat/ | wc -l` -ge 1 ]; then /usr/local/bin/vnstat -u; fi Patch attached with submission follows: --- vnstat-cron.orig 2008-02-20 07:25:56.000000000 -0500 +++ vnstat-cron 2008-02-20 07:26:55.000000000 -0500 @@ -1 +1 @@ -*/5 * * * * root if [ -x /usr/bin/vnstat ] && [ `ls /var/lib/vnstat/ | wc -l` -ge 1 ]; then /usr/bin/vnstat -u; fi +*/5 * * * * root if [ -x /usr/local/bin/vnstat ] && [ `ls /var/db/vnstat/ | wc -l` -ge 1 ]; then /usr/local/bin/vnstat -u; fi >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200802201240.m1KCedld016342>