slackbuilds/network/vnstat
dsomero d0c108251a various: Update find command to match template.
Signed-off-by: dsomero <xgizzmo@slackbuilds.org>
2013-11-22 02:37:19 -05:00
..
README network/vnstat: Updated for version 1.7 2010-05-12 17:44:25 +02:00
doinst.sh network/vnstat: Updated for version 1.7 2010-05-12 17:44:25 +02:00
rc.vnstat network/vnstat: Fixed code in rc.vnstat 2011-03-02 20:52:07 -03:00
slack-desc various: Fix slack-desc formatting and comment nit picks. 2013-11-22 02:29:22 -05:00
vnstat.SlackBuild various: Update find command to match template. 2013-11-22 02:37:19 -05:00
vnstat.info Add REQUIRED field to .info files. 2012-08-19 21:57:51 -05:00

README

vnStat is a network traffic monitor for Linux that keeps a log of daily 
network traffic for the selected interface(s). vnStat isn't a packet 
sniffer. The traffic information is analyzed from the /proc filesystem, 
so vnStat can be used without root permissions. 

This program is open source (GPL) and can be installed in 'single' and 
'root' mode. 

Note that you can run vnstat either from cron or as a daemon from /etc/rc.d.

To run vnstat from cron:
  Add the following line to your crontab:
  0-55/5 * * * * if [[ -x /usr/bin/vnstat && $(ls /var/lib/vnstat/ | wc -l) -ge 1 ]]; then /usr/bin/vnstat -u; fi

To run vnstat from /etc/rc.d:
  chmod +x /etc/rc.d/rc.vnstat
  
Note that to have vnstat start automatically this way it should be called from
rc.local (and optionally rc.local_shutdown) like so:

  In rc.local:
  # Start vnstat
  if [ -x /etc/rc.d/rc.vnstat ]; then
    /etc/rc.d/rc.vnstat start
  fi

  In rc.local_shutdown:
  # Stop vnstat
  if [ -x /etc/rc.d/rc.vnstat ]; then
    /etc/rc.d/rc.vnstat stop
  fi