• Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Search
  • Register
  • Login
Netgate Discussion Forum
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Search
  • Register
  • Login

Bandwidthd - clear daily usage at midnight…

Scheduled Pinned Locked Moved pfSense Packages
2 Posts 1 Posters 1.9k Views
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • V
    Verohomie
    last edited by Apr 27, 2012, 6:39 PM

    Hi all -

    I want to clear the daily usage .cdf log file at midnight.

    I have scoured, tried shell scripts, pgrep, kill -HUP, etc… to no avail.

    Any ideas?

    Thanks - Brad

    1 Reply Last reply Reply Quote 0
    • V
      Verohomie
      last edited by Apr 28, 2012, 12:43 AM

      Still stuck…
      I issue 4+ consecutive HUPs in hope the data will rotate out but NO.

      I have tried a shell script:

      #! /bin/sh
      #
      for pid in $(pgrep bandwidthd); do kill -HUP $pid; done
      

      I have also tried:

      pgrep bandwidthd| xargs kill -HUP
      

      I have tested both by changing "-HUP" to "-9" and whamo all parent and children are killed.

      What am I doing wrong?

      1 Reply Last reply Reply Quote 0
      1 out of 2
      • First post
        1/2
        Last post
      Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.
        This community forum collects and processes your personal information.
        consent.not_received