Thanks Louis, that's great to know.
I'll do that now.
Good to know that about logrotate too. Thanks for confirming.
Cheers,
Andi
From: Louis Munro [mailto:[email protected]]
Sent: 20 January 2015 14:49
To: [email protected]
Subject: Re: [PacketFence-users] logrotate httpd.portal.catalyst
On Jan 20, 2015, at 9:32 , Morris, Andi
<[email protected]<mailto:[email protected]>> wrote:
Thanks Louis,
I'll add that in now. Thanks.
I would like to roll this log by hand though if at all possible as I'm not sure
how long the compression will take as part of logrotate.
Well, remember that logrotate compresses the file after rename/copy.
I don't have 17GB spare on the server unfortunately.
That settles it then.
lsof /usr/local/pf/logs/httpd.portal.catalyst shows me that httpd is using the
file (as expected). So, am I able to rename the current
/usr/local/pf/logs/httpd.portal.catalyst file, create a new one, and restart
the httpd service in order to get apache to use the new file? I would like to
do this with as little downtime to the end users as possible of course.
You should not need to create the file.
It will be recreated by httpd when you restart it.
So just rename the file and then restart the portal process (pfcmd service
httpd.portal restart).
That should make it less that a minute of downtime on the portal.
Then compress the renamed file at your leisure.
Regards,
--
Louis Munro
[email protected]<mailto:[email protected]> ::
www.inverse.ca<http://www.inverse.ca>
+1.514.447.4918 x125 :: +1 (866) 353-6153 x125
Inverse inc. :: Leaders behind SOGo (www.sogo.nu<http://www.sogo.nu>) and
PacketFence (www.packetfence.org<http://www.packetfence.org>)
________________________________
[Cardiff Metropolitan University - 150 years of nurturing
talent]<http://www.cardiffmet.ac.uk/cardiffmet150>
------------------------------------------------------------------------------
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