aboutsummaryrefslogtreecommitdiff
path: root/network/vnstat/README.SBo
blob: 5e81ca1d6d43740cdb623601e7190c68061d1123 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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