<div dir="ltr"><div class="gmail_default" style="font-size:small">The naming convention I am using includes Hour and Minute, then all files are named differently.</div><div class="gmail_default" style="font-size:small"><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Oct 2, 2020 at 10:56 AM Vic Jolin <<a href="mailto:adjolin@gmail.com">adjolin@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="auto">If you rotate before moving or renaming you might have an issue.</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Oct 2, 2020, 10:48 PM Saint Michael, <<a href="mailto:venefax@gmail.com" target="_blank">venefax@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div class="gmail_default" style="font-size:small">But I move the file to another box, via an NFS mount.</div><div class="gmail_default" style="font-size:small">That's why my approach is better. I build a list of files, rotate, and then move the files across the Internet.</div><div class="gmail_default" style="font-size:small"><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Oct 2, 2020 at 10:32 AM Liviu Chircu <<a href="mailto:liviu@opensips.org" rel="noreferrer" target="_blank">liviu@opensips.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div>
<div>On 02.10.2020 17:23, Saint Michael
wrote:<br>
</div>
<blockquote type="cite">the
order of actions seems to be problematic. what if I issue a
rename, move command, and opensips is actually at the same time
writing to the file?</blockquote>
<p><tt>:) that is the part which confuses everyone when working with
this module (myself included, when I began using it).</tt></p>
<p><tt>The answer: it simply works! OpenSIPS will continue writing
to the <b>moved </b>file until you <b>rotate</b> it</tt><tt>,
as the "move" operation simply changes the inode of the file
(its reference, hook, pointer, etc.), without touching its
contents. This seems to work well on ext filesystems, such as
ext4. I have a feeling this is not the case for all
filesystems, though.</tt></p>
<pre cols="72">--
Liviu Chircu
<a href="http://www.twitter.com/liviuchircu" rel="noreferrer" target="_blank">www.twitter.com/liviuchircu</a> | <a href="http://www.opensips-solutions.com" rel="noreferrer" target="_blank">www.opensips-solutions.com</a></pre>
</div>
_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opensips.org" rel="noreferrer" target="_blank">Users@lists.opensips.org</a><br>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" rel="noreferrer noreferrer" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
</blockquote></div>
_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opensips.org" rel="noreferrer" target="_blank">Users@lists.opensips.org</a><br>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" rel="noreferrer noreferrer" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
</blockquote></div>
_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a><br>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" rel="noreferrer" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
</blockquote></div>