aboutsummaryrefslogtreecommitdiff
path: root/network/vnstat
diff options
context:
space:
mode:
authorB. Watson <yalhcru@gmail.com>2022-03-14 13:33:23 -0400
committerB. Watson <yalhcru@gmail.com>2022-03-17 12:38:15 -0400
commitca99f7fbf79e31dc4a2332f36e9b3947b9a73990 (patch)
tree98bf02ed4a08afd3707115f18cdd96060a50dc1f /network/vnstat
parentf60b4ba89d23909b641e49ea7b5715141d34a34b (diff)
network/vnstat: Move setup instructions to README.SBo.
Signed-off-by: B. Watson <yalhcru@gmail.com>
Diffstat (limited to 'network/vnstat')
-rw-r--r--network/vnstat/README23
-rw-r--r--network/vnstat/README.SBo21
2 files changed, 22 insertions, 22 deletions
diff --git a/network/vnstat/README b/network/vnstat/README
index 98f78918914ef..73cbc51c7af1f 100644
--- a/network/vnstat/README
+++ b/network/vnstat/README
@@ -9,25 +9,4 @@ 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
+/etc/rc.d. See README.SBo for post-install configuration.
diff --git a/network/vnstat/README.SBo b/network/vnstat/README.SBo
new file mode 100644
index 0000000000000..31fc8fdf3d979
--- /dev/null
+++ b/network/vnstat/README.SBo
@@ -0,0 +1,21 @@
+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