summaryrefslogtreecommitdiff
path: root/network/vnstat/README
diff options
context:
space:
mode:
authorMichiel van Wessem <michiel@slackbuilds.org>2010-05-12 17:44:25 +0200
committerDavid Somero <xgizzmo@slackbuilds.org>2010-05-12 17:44:25 +0200
commitb83a67ebf626bbe4bf6f9558db2ce44881e340ce (patch)
tree7a9ab36100191f022d815ba75cc7975714f7c954 /network/vnstat/README
parent1ecd34752cc70faa167f0b40483b709765425656 (diff)
downloadslackbuilds-b83a67ebf626bbe4bf6f9558db2ce44881e340ce.tar.gz
network/vnstat: Updated for version 1.7
Diffstat (limited to 'network/vnstat/README')
-rw-r--r--network/vnstat/README25
1 files changed, 23 insertions, 2 deletions
diff --git a/network/vnstat/README b/network/vnstat/README
index a22949bbfb..c53c6a459c 100644
--- a/network/vnstat/README
+++ b/network/vnstat/README
@@ -6,5 +6,26 @@ so vnStat can be used without root permissions.
This program is open source (GPL) and can be installed in 'single' and
'root' mode.
-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
+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