Giter VIP home page Giter VIP logo

Comments (4)

vergoh avatar vergoh commented on August 18, 2024 1

You'd need to add the --sync parameter to the daemon startup parameters in order to achieve such behaviour. Because such configuration isn't usually needed, there's no configuration file option available. In Debian 11, you'd need to locate the active vnstat.service or vnstatd.service file and edit it. By default, it should contain a line like this:

ExecStart=/usr/sbin/vnstatd -n

Modify it to look like

ExecStart=/usr/sbin/vnstatd -n --sync

as in, add the --sync parameter to the end of whatever that ExecStart line has. Finally save the file and reload systemd or reboot. After that change, vnStat will stop trying to track traffic if the daemon is stopped for some time and then restarted without the system being rebooted. The vnstatd man page has also some more details regarding this parameter.

from vnstat.

alisalehiman avatar alisalehiman commented on August 18, 2024

Hi @vergoh
Would you please check this?

from vnstat.

alisalehiman avatar alisalehiman commented on August 18, 2024

Hi @vergoh
Thank you for response.
From which version (--sync) is supported?

from vnstat.

vergoh avatar vergoh commented on August 18, 2024

It has been there starting from version 1.8: https://github.com/vergoh/vnstat/blob/master/CHANGES#L517

from vnstat.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.