openbsd-ports/net/vnstat/pkg
sthen 91faa22c52 Where a program with an rc script _requires_ a certain command line
parameter to daemonize, move the parameter from daemon to daemon_flags,
so that the user cannot inadvertently prevent it from daemonizing by
adjusting the flags.

Discussed with ajacoutot and schwarze, this method was suggested
by schwarze@ as a simpler alternative to my diff. ok aja@
2011-12-17 22:01:12 +00:00
..
DESCR
PLIST
README Add a consistent header that substitutes FULLPKGNAME for the READMEs. 2011-06-02 13:41:36 +00:00
vnstatd.rc Where a program with an rc script _requires_ a certain command line 2011-12-17 22:01:12 +00:00

$OpenBSD: README,v 1.2 2011/06/02 13:41:40 ajacoutot Exp $

+-----------------------------------------------------------------------
| Running ${FULLPKGNAME} on OpenBSD
+-----------------------------------------------------------------------

All the command must be launched as the user _vnstat.

1) Launch vnstat --iflist to see all the available interfaces.

2) For each interface that you want to monitor, launch this command:
   # vnstat -i interface -u
This will create the database for the specified interface.

3) Edit ${SYSCONFDIR}/vnstat.conf if necessary

4) Finally launch the vnstatd daemon:
   # ${SYSCONFDIR}/rc.d/vnstatd start

5) Create graphics with the command vnstati


Random hints:
    * You can enable debug in ${SYSCONFDIR}/vnstat.conf and check 
      the logs in /var/log/vnstat/vnstat.log