Commit Graph

9 Commits

Author SHA1 Message Date
Jan Hoffmann 1657fdb869 vnstat2: update to version 2.11
This release breaks the noexit patch, because the code for removing old
now returns an error when no interfaces are configured. As it is run on
startup, the daemon exits in this case. To avoid this, add an additional
check so an error is only returned in an actual error case.

Signed-off-by: Jan Hoffmann <jan@3e8.eu>
(cherry picked from commit 9871979707)
2023-09-04 14:30:05 +08:00
Jan Hoffmann fc76c3e9fe vnstat2: update to version 2.10
Signed-off-by: Jan Hoffmann <jan@3e8.eu>
(cherry picked from commit 4edbd1afe7)
2023-09-04 14:30:05 +08:00
Jan Hoffmann 948f0d29cc vnstat2: update to version 2.9
Signed-off-by: Jan Hoffmann <jan@3e8.eu>
2022-01-25 21:54:48 +01:00
Jan Hoffmann f9ea814260 vnstat2: add hotplug script for adding interfaces
If an interface doesn't exist yet when vnStat is started, it won't be
monitored, as only existing interfaces can be added to the database via
the vnstat command.

This adds a hotplug script which adds any configured interfaces to the
vnStat database when it goes up.

Signed-off-by: Jan Hoffmann <jan@3e8.eu>
2021-10-28 01:31:18 -07:00
Jan Hoffmann ecae7dedde vnstat2: fix all interfaces being monitored when none are configured
By default, vnstatd adds all available interfaces on startup when its
database is empty. The --noadd option prevents this, but it breaks
import of legacy databases, and causes vnstatd to exit immediately
after startup, which breaks reloading.

This changes the init script to add the --noadd option when no legacy
databases need to be imported, and patches vnstatd to keep running
even when no interfaces are configured.

Signed-off-by: Jan Hoffmann <jan@3e8.eu>
2021-10-28 01:31:18 -07:00
Jan Hoffmann 73fff7a4ed vnstat2: update to version 2.8
Signed-off-by: Jan Hoffmann <jan@3e8.eu>
2021-10-03 23:40:41 +02:00
Jan Hoffmann 80e6e0bcbe vnstat2: update to version 2.7
Signed-off-by: Jan Hoffmann <jan@3e8.eu>
2021-05-18 21:50:53 +03:00
Jan Hoffmann 39f1455926 vnstat2: update to version 2.6
This also cleans up the Makefile and removes an unneeded patch.

Signed-off-by: Jan Hoffmann <jan@3e8.eu>
2020-01-21 14:05:22 +01:00
Jan Hoffmann 26878ae8de vnstat2: add package
This introduces an additional package for version 2 of vnStat.

Signed-off-by: Jan Hoffmann <jan@3e8.eu>
2020-01-04 00:43:57 +01:00