Summary: | [net/vnstat] Fresh vnstat installation breaks after reboot with database file permissions | ||||||||
---|---|---|---|---|---|---|---|---|---|
Product: | Ports & Packages | Reporter: | Yuri Victorovich <yuri> | ||||||
Component: | Individual Port(s) | Assignee: | Mark Felder <feld> | ||||||
Status: | Closed FIXED | ||||||||
Severity: | Affects Only Me | Flags: | bugzilla:
maintainer-feedback?
(feld) |
||||||
Priority: | --- | ||||||||
Version: | Latest | ||||||||
Hardware: | Any | ||||||||
OS: | Any | ||||||||
Attachments: |
|
Description
Yuri Victorovich
2015-04-03 01:41:26 UTC
Hello, Did you happen to run the "vnstat --create ..." command as root? That's supposed to be run as the vnstat user, which might be confusing if you've never run vnstat before. Created attachment 155582 [details]
patch
Hi Mark,
I made vnstat service start smoothly when Interface in config file is valid. Otherwise it fails with the meaningful message.
I also added the ability to add vnstat_additional_ifaces in rc.conf. Also all databases are created automatically when requested but missing with the right permissions.
I tested it on both base system where vnstat was already running, and on the freshly installed 10.1 system.
Created attachment 155583 [details]
patch
Maintainer timeout. A commit references this bug: Author: feld Date: Fri May 8 13:24:36 UTC 2015 New revision: 385777 URL: https://svnweb.freebsd.org/changeset/ports/385777 Log: Improve configuration and setup of vnstat through the rc script PR: 199133 Changes: head/net/vnstat/Makefile head/net/vnstat/files/pkg-message.in head/net/vnstat/files/vnstat.in Sorry about the delay, but the changes have finally landed. Thanks for your submission! Thanks! No problem! |