On Nov 28, 2007 3:26 PM, linux board <[EMAIL PROTECTED]> wrote:
> Im using Redhat AS4 and I just want someone to help me on this simple inquiry.
> Do you think both [1 and 2a) + 2b)] below have the same effect? This is just
> to isolate the logrotate  for (/var/log/wtmp and /var/log/messages) on the
> common logrotate schedule. I just want tomake the script simple if number 1
> is ok already.  Thanks in advance!!!
>
> /etc/logrotate.conf
> 1)
> /var/log/wtmp /var/log/messages {
>     weekly
>     create 0664 root utmp
>     rotate 52
> }
>
> 2a)
> /var/log/wtmp  {
>     weekly
>     create 0664 root utmp
>     rotate 52
> }
> 2b)
> /var/log/messages {
>     weekly
>     create 0664 root utmp
>     rotate 52
> }
>

Some things to note:

1. File ownership. /var/log/messages is owned by root:root,
/var/log/wtmp by root:utmp
2. Process ownership. Which processes use (or own) /var/log/messages
(syslogd) and /var/log/wtmp (init (?)).
3. Signals and open file descriptors. To rotate /var/log/messages, for
example, you'd have to send a SIGHUP to syslogd.

With these in mind: man logrotate syslog utmp.

HTH.


-- 
Ian Dexter R. Marquez
http://feeds.iandexter.net/Coredump
_________________________________________________
Philippine Linux Users' Group (PLUG) Mailing List
plug@lists.linux.org.ph (#PLUG @ irc.free.net.ph)
Read the Guidelines: http://linux.org.ph/lists
Searchable Archives: http://archives.free.net.ph

Reply via email to