|
@@ -18,12 +18,22 @@
|
|
<affiliation><orgname>FhG FOKUS</orgname></affiliation>
|
|
<affiliation><orgname>FhG FOKUS</orgname></affiliation>
|
|
<email>[email protected]</email>
|
|
<email>[email protected]</email>
|
|
</author>
|
|
</author>
|
|
|
|
+ <author>
|
|
|
|
+ <firstname>Julien</firstname>
|
|
|
|
+ <surname>Chavanton</surname>
|
|
|
|
+ <affiliation><orgname>Flowroute</orgname></affiliation>
|
|
|
|
+ <email>[email protected]</email>
|
|
|
|
+ </author>
|
|
</authorgroup>
|
|
</authorgroup>
|
|
<copyright>
|
|
<copyright>
|
|
<year>2004</year>
|
|
<year>2004</year>
|
|
<year>2005</year>
|
|
<year>2005</year>
|
|
<holder>FhG FOKUS</holder>
|
|
<holder>FhG FOKUS</holder>
|
|
</copyright>
|
|
</copyright>
|
|
|
|
+ <copyright>
|
|
|
|
+ <year>2017</year>
|
|
|
|
+ <holder>Flowroute</holder>
|
|
|
|
+ </copyright>
|
|
</bookinfo>
|
|
</bookinfo>
|
|
|
|
|
|
<chapter>
|
|
<chapter>
|
|
@@ -87,7 +97,7 @@ modparam("acc", "db_url", "flatstore:/var/log/acc")
|
|
<title>Rotating Log Files</title>
|
|
<title>Rotating Log Files</title>
|
|
<para>
|
|
<para>
|
|
The module implements a &kamailio; management interface command called
|
|
The module implements a &kamailio; management interface command called
|
|
- flatstore.rotate. When &kamailio; receives the command it will
|
|
|
|
|
|
+ flatstore.k_rotate. When &kamailio; receives the command it will
|
|
close and reopen all files used by the db_flatstore module.
|
|
close and reopen all files used by the db_flatstore module.
|
|
The rotation itself has to be done by another application
|
|
The rotation itself has to be done by another application
|
|
(such as logrotate). Follow these steps to rotate files generated by
|
|
(such as logrotate). Follow these steps to rotate files generated by
|
|
@@ -113,7 +123,7 @@ mv acc_4.log acc_3.log.20050605
|
|
Send &kamailio; the management command to close and reopen the
|
|
Send &kamailio; the management command to close and reopen the
|
|
renamed files:
|
|
renamed files:
|
|
<screen>
|
|
<screen>
|
|
-&sercmd; flatstore.rotate
|
|
|
|
|
|
+&sercmd; flatstore.k_rotate
|
|
</screen>
|
|
</screen>
|
|
This will force &kamailio; to close the renamed files and open
|
|
This will force &kamailio; to close the renamed files and open
|
|
new ones with original names, such as
|
|
new ones with original names, such as
|