Re: Rotating Detail Files

Old Man (oldman@mitec.net)
Fri, 8 Nov 1996 11:50:12 -0600 (CST)

On Fri, 8 Nov 1996, Steven P. Crain wrote:
> On Thu, 7 Nov 1996, Dean Forester wrote:
> > How is the safest way to rotate the detail files? Do you have to HUP the
> > raduisd? or should you pause it somehow while you move/rename the old
> > file and touch a new one?
> > FYI: I am running Raduis 1.16 on FreeBSD 2-2-960801-SNAP with 3 PM 2e-30s..
> With Radius 1.16 you can just move the file. Radius closes and reopens it
> for every packet. [Reports indicate that you have to do something more
> complex with Radius 2.0, though I haven't played with it yet. Good job
> Livingston! I enjoyed easy rotates, but was worried about the
> affect of all the open/closes on performance.]

What is wrong with:

cp detail detail.1
cat /dev/null > detail

It's what I do with syslog files and it doesn't require me to send and HUP
signals.