Hello Jamie,
the idea is rather interesting. I've thought implementing it via a signal
handler. This way we also avoid timing troubles (signals could be sent
via crontab scripts, for example). In future, such signal handler might
be used to send (either to the console or syslog) further status, statistics,
summaries (any idea at this propo ?).

I've reserved for such handler the SIGUSR1; in the most simple case (a
single pmacctd instance running on the box) the following command will
suffice:

killall -USR1 pmacctd

In more complex scenarios one might resort to the pidfile. I've made
available a fresh tarball which contains the above implementation:
http://www.ba.cnr.it/~paolo/pmacct/pmacct-0.9.1-20050805.tar.gz

As usual, feel free to download and evaluate it but remember to upgrade
as soon as the final version is released. 

Comments ?

Cheers,
Paolo

Reply via email to