Rotatelog for traditional Unix systems

"Alex Judd" <[email protected]>
Newsgroups gmane.comp.mobile.kannel.devel
Message-ID <003801c2d6ab$d7eb02d0$0201640a@alexcompaq1>
Everyone

Additional comments on rotating logs for the userguide for systems that
don't have RedHat's logrotate installed.

Alex

--- userguide.xml.orig  2003-02-17 17:19:11.420001000 +0000
+++ userguide.xml       2003-02-17 17:20:19.650037000 +0000
@@ -7490,6 +7490,24 @@
               endscript
         }
         </userinput></screen>
+
+         <para>
+         For traditional Unix based systems such as Solaris and HPUnix we
recommend using
+         rotatelog, a free Perl based log rotator from InterHack
(http://www.interhack.net
+         /projects/rotatelog/). A sample logrotate script
(/usr/local/etc/rotatelog.conf)
+         is shown below.
+         </para>
+
+         <screen><userinput>
+         FILES:
+         /var/log/kannel/access.log        2M      kannel:kannel    775
gz         100
+         /var/log/kannel/enpocket.log      2M      kannel:kannel    775
gz         100
+         /var/log/kannel/smsbox.log        2M      kannel:kannel    775
gz         100
+         ACTIONS:
+         kill - HUP | ps -ef | grep -i production | awk '{print $2}'  :
/var/log/kannel/access.log, /var/log/kannel/enpocket.log,
/var/log/kannel/smsbox.log
+         NOTIFY:
+         [email protected]
+         </userinput></screen>
 </sect1>

 </appendix>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.