<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<div class="moz-cite-prefix">On 02.10.2020 17:23, Saint Michael
wrote:<br>
</div>
<blockquote type="cite"
cite="mid:CAC9cSOBOuHc+s_D7nM5_hwrysRoCarSkxp1=J0uK_zZA5+zswQ@mail.gmail.com">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 class="moz-signature" cols="72">--
Liviu Chircu
<a class="moz-txt-link-abbreviated" href="http://www.twitter.com/liviuchircu">www.twitter.com/liviuchircu</a> | <a class="moz-txt-link-abbreviated" href="http://www.opensips-solutions.com">www.opensips-solutions.com</a></pre>
</body>
</html>