<div class="gmail_quote">On Mon, Jun 27, 2011 at 4:42 PM, Richard "Doc" Kinne <span dir="ltr"><<a href="mailto:rkinne@aavso.org">rkinne@aavso.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Researching this I found the /etc/logrotate.conf file and looked at that. The documentation SEEMS TO SAY that you can modify the behavior of the configuration file by directory. Ultimately, what I would love to do is have the system logrotate command at this point simply not touch /var/log/httpd and let my script handle that. I'm not sure how to write the logrotate.conf file in order to do that.<br>
<br>Would this work?<br><br>/var/log/httpd {<br>}<br></blockquote><div><br></div><div>You can't specify a directory to logrotate, it just takes file paths, though you can use globbing.</div><div>Additionally, an empty stanza will, I believe inherit the global options, so it depends what the rest of your config has.</div>
<div><meta charset="utf-8"><div>IMO, if you don't want logrotate dealing with a directory at all, just remove the config lines/file that cause it to do so.</div></div><div><br></div></div>