On Thu, Jan 27, 2011 at 01:45:30PM +0100, Harald Dunkel wrote:

> Hi folks,
> 
> Problem: For rotating pflog log files I need the PID
> of the appropriate pflogd. For 4.3 I could rely
> upon "pflogd -p pflogd4.pid", but for 4.8 the -p
> is not allowed anymore :-(. The man page still points
> to newsyslog, but thats all.
> 
> Of course this can be solved by messing around
> with pgrep or pkill, but for several pflog files
> this gets _really_ ugly, not to mention that
> newsyslog doesn't accept a script to compute the
> PID.
> 
> Why was the -p dropped? Is there any chance to get
> it back?
> 
> 
> Regards
> 
> Harri

-p is prone to race conditions. I don't think there's any drawback in
sending all pflogd instances a HUP.
Check the example newsyslog.conf that comes with the install.

        -Otto

Reply via email to