<div dir="ltr"><div><div>I guess, what I was saying might not have been clear.<br><br></div>If you used <i>rotatelogs</i> (or something to rotate the logs), wouldn't that move <i>some_log_file.log</i> to <i>some_log_file.log.1</i> and recreate <i>some_log_file.log?</i></div>
<div>Then your scripts could remove <i>some_log_file.log.1</i>, which would create a new file descriptor that references the newly created inode for <i>some_log_file.log.<br></i></div><div>When you delete <i>some_log_file.log.1</i> wouldn't that free up that file descriptor and the inode which was referenced?<br>
</div><div>Wouldn't this force an update of the available inodes in the file table?<br><br></div><div>Using  <i>rotatelogs or </i>Apache's <i>graceful</i> restart option should be different than just running  <i>$ :> some_log_file.log </i>or<i> $ cat /dev/null > some_log_file.log</i>, <br>
as both of those options retain the current inode in use.<i><br></i></div><div>However, I'm not entirely certain how either <i>rotatelogs or </i>Apache's <i>graceful</i> restart option handles file descriptors/inodes.<br>
</div><div>I should probably go read some man pages...<br></div><div><br></div><div>Anyone? Am I <i>way </i>off in my thinking?<br></div><div><br></div><div>-> Jake<br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">
On Tue, Dec 3, 2013 at 10:51 AM, Jake Vath <span dir="ltr"><<a href="mailto:jake.vath@gmail.com" target="_blank">jake.vath@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr"><div><div>Could you use <i>graceful-restart </i>or <i>rotatelogs</i> to take care of this?<br></div>I'm not sure that either of those would update any inodes though.<br><br></div><div>Alternately, would you be able to edit the <i>LogFormat </i>to not include that information, in the log file, for the time being?<span class="HOEnZb"><font color="#888888"><br>

</font></span></div><span class="HOEnZb"><font color="#888888"><div><br></div><div>-> Jake<br></div></font></span></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, Dec 3, 2013 at 10:44 AM, Ryan Coleman <span dir="ltr"><<a href="mailto:ryanjcole@me.com" target="_blank">ryanjcole@me.com</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I’ll take a look, thanks!<br>
<div>On Dec 3, 2013, at 10:36 AM, Jeremy MountainJohnson <<a href="mailto:jeremy.mountainjohnson@gmail.com" target="_blank">jeremy.mountainjohnson@gmail.com</a>> wrote:<br>
<br>
> wipe and srm are possibilities too; although I would think there would<br>
> be a better solution to this.<br>
<br>
</div><div><div>_______________________________________________<br>
TCLUG Mailing List - Minneapolis/St. Paul, Minnesota<br>
<a href="mailto:tclug-list@mn-linux.org" target="_blank">tclug-list@mn-linux.org</a><br>
<a href="http://mailman.mn-linux.org/mailman/listinfo/tclug-list" target="_blank">http://mailman.mn-linux.org/mailman/listinfo/tclug-list</a><br>
</div></div></blockquote></div><br></div>
</div></div></blockquote></div><br></div>