<div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote">On 19 December 2013 17:34, Imran Chaudhry <span dir="ltr"><<a href="mailto:ichaudhry@gmail.com" target="_blank">ichaudhry@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Iain,<br>
<br>
The 6:25am bit made me recall cron.daily which by default is set to<br>
run at that time - at least on Debian systems.<br></blockquote><div><br></div><div><br></div><div style>That is a great spot - it must be that, but there is no logrotate for those logfiles. </div><div style><br></div><div style>
Well I have cleared out and set a logrotate now and everything is fine. </div><div style><br></div><div style>Thanks </div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<br>
I'd check the cron stuff again - check /etc/cron.daily for any<br>
symlinks or other entries that might be doing it. I'd bet that<br>
Glassfish has put something in there. An idea is to examine the<br>
package list of everything that comes with the Glassfish package for<br>
something with cron in the name.<br>
<br>
Does glassfish run as a special user or something? Might be worth<br>
checking the user-specific crontab?<br>
<br>
Here is the relevant line in /etc/crontab<br>
<br>
  25 6    * * *    root    test -x /usr/sbin/anacron || ( cd / &&<br>
run-parts --report /etc/cron.daily )<br>
<br>
It's odd that the gzips are 0, even an gzip of an empty file comes to<br>
~20 bytes. My gut reaction is something with logrotate.<br>
<div><div class="h5"><br>
<br>
<br>
On 19 December 2013 11:02, Iain Gray <<a href="mailto:iain.dv@gmail.com">iain.dv@gmail.com</a>> wrote:<br>
> hi<br>
><br>
> I have a glassfish (2.1.1) server running on ubuntu 12.04 with a bizarre<br>
> logging behaviour.<br>
><br>
> The logging configuration is set up to log to a location and roll over to a<br>
> new log once the log reaches 20MB. So far so good and this works fine.<br>
> However There is something that is taking these logs and gzipping old ones<br>
> at 6.25am every morning, but the gzips are all 0 bytes<br>
><br>
> I have gone through logrotate, syslod,  rsyslogd, all crontabs on the system<br>
> and can find nothing that is doing this zip.<br>
><br>
> Does anyone have any suggestions as to 1. why the gzip is 0 and 2. what is<br>
> doing it.<br>
><br>
> Thanks<br>
><br>
</div></div>> _______________________________________________<br>
> GLLUG mailing list<br>
> <a href="mailto:GLLUG@mailman.lug.org.uk">GLLUG@mailman.lug.org.uk</a><br>
> <a href="https://mailman.lug.org.uk/mailman/listinfo/gllug" target="_blank">https://mailman.lug.org.uk/mailman/listinfo/gllug</a><br>
><br>
<span class="HOEnZb"><font color="#888888"><br>
<br>
<br>
--<br>
Key fingerprint = EF78 310C C517 9564 9ECA  82F6 68FA E621 17E1 5D16<br>
<a href="http://about.me/imranchaudhry" target="_blank">http://about.me/imranchaudhry</a><br>
<br>
_______________________________________________<br>
GLLUG mailing list<br>
<a href="mailto:GLLUG@mailman.lug.org.uk">GLLUG@mailman.lug.org.uk</a><br>
<a href="https://mailman.lug.org.uk/mailman/listinfo/gllug" target="_blank">https://mailman.lug.org.uk/mailman/listinfo/gllug</a><br>
</font></span></blockquote></div><br></div></div>