Project

General

Profile

Bug #215

vnstat documentation

Added by sreeramravi almost 12 years ago. Updated over 8 years ago.

Status:
Closed
Priority:
Medium
Assignee:
Category:
Utility
Target version:
-
Start date:
05/26/2009
Due date:
% Done:

100%

Estimated time:
0.05 h

Description

These are the lines as per WIKI

Creates the /var/lib/vnstat/eth0 file with root:root:
vnstat -i eth0 -u
chown vnstat:vnstat /var/lib/vnstat/*eth0
Creates the /var/lib/vnstat/.eth0 file:
vnstat -i eth0 -u
chown vnstat:vnstat /var/lib/vnstat/*eth0

I think this should be
Login as root
cd /var/lib/vnstat/
touch eth0
vnstat -i eth0 -u
chown vnstat:vnstat eth0
chown vnstat:vnstat .eth0

Thanks
S.Ravi

History

#1 Updated by bsk almost 12 years ago

  • Priority changed from Normal to Low
  • Estimated time set to 0.05 h

The question is, why is the script:

vnstat -i eth0 -u

Run twice in the scripts.

#2 Updated by cpg almost 12 years ago

  • Assignee changed from cpg to bsk
  • Priority changed from Low to Medium

#3 Updated by essary almost 12 years ago

The reason the command has to be run twice is in the comments of the script.
The first time the command is ran it creates the "eth0" file. The second time it is run, it creates the ".eth0" file.
On my machine I could not figure out a way to get around running the command twice and changing permission in between and after.

#4 Updated by bsk almost 12 years ago

  • Status changed from New to Resolved
  • % Done changed from 0 to 100

#5 Updated by cpg over 8 years ago

  • Status changed from Resolved to Closed
  • Estimated time changed from 0.05 h to 0.05 h

Also available in: Atom