 create  logrotate          -
,      .   compress (-
   )       gzip. -
  include     /etc/logrotate.d   -
 logrotate,   .     
 rpm (.  "rpm:   Red Hat"  13), rpm  
    logrotate (    ).

     logrotate.conf   
/var/log/wtmp (      ;     
  who /var/log/wtmp).   monthly () -
   weekly ()     ( 
    ).    create () 
,   ,      .   rotate
  ,      .

   logrotate,   ,  
/etc/logrotate.d/samba:

$ cat /etc/logrotate.d/samba

/var/log/samba/*.log f

notifempty

missingok

sharedscripts

copytruncate

postrotate

/bin/kill -HUP 'cat /var/run/smbd.pid /var/run/nmbd.pid /var/run/winbindd.pid
2> /dev/null' 2> /dev/null |] true

endscript
}

 ,    /etc/logrotate.d -  include  
logrotate. conf,      /var/log/samba  
log (*.log).   notifempty  logrotate   , -
  ,        . -
  missingok ,        -
  .   sharedscripts  logrotate  -
 ()   prerotate  postrotate   ,    
 .   copytruncate  logrotate  -
        .  
   ,        
,            
.    postrotate  endscript   -
 .     prerotate  endscript -
   .

  logrotate    ,     -
     .  .  man- 
logrotate.

 16.   565