Navigation

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

    Bandwidthd - clear daily usage at midnight…

    pfSense Packages
    1
    2
    1682
    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

      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

        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
        • First post
          Last post