On Jan 20, 2015, at 4:42 , Morris, Andi <[email protected]> wrote:
>
> Is there any issue with adding this to the /etc/logrotate.d/packetfence file
> so that it is rotated and compressed?
None at all.
It should be there. If it isn’t you ought to add it.
> I can only imagine this will take a while to compress this huge file, so if I
> create an empty file by hand and move the old one out to do by hand will
> PacketFence just continue to use the new empty file?
No. if you do that the processes will keep writing to the old file regardless
of it’s name.
Remember that what matters to a process is a file descriptor, not a file name.
So if you do that you should restart any process that has an open file
descriptor to that file (find out with lsof).
Alternatively, if you have a spare 17Gb lying around you could add it to the
log rotation with the copytruncate option.
That will copy the contents of the file and then truncate it, neatly solving
the file descriptor issue.
Regards,
--
Louis Munro
[email protected] :: www.inverse.ca
+1.514.447.4918 x125 :: +1 (866) 353-6153 x125
Inverse inc. :: Leaders behind SOGo (www.sogo.nu) and PacketFence
(www.packetfence.org)
------------------------------------------------------------------------------
New Year. New Location. New Benefits. New Data Center in Ashburn, VA.
GigeNET is offering a free month of service with a new server in Ashburn.
Choose from 2 high performing configs, both with 100TB of bandwidth.
Higher redundancy.Lower latency.Increased capacity.Completely compliant.
http://p.sf.net/sfu/gigenet
_______________________________________________
PacketFence-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/packetfence-users