evolinux-base: wtmp rsyslog config #111

Open
opened 2020-07-03 03:55:55 +02:00 by benpro · 0 comments
Contributor

Starting from buster.

In /etc/logrotate.conf we add:

# no packages own wtmp, or btmp -- we'll rotate them here
/var/log/wtmp {                                          
    missingok                                            
    monthly                                              
    create 0664 root utmp                                
    rotate 12                                            
}                                                        
                                                         
/var/log/btmp {                                          
    missingok                                            
    monthly                                              
    create 0660 root utmp                                
    rotate 12                                            
}                                                        
                                                         

This should be added in /etc/logrotate.d/{w,b}tmp.

Starting from buster. In `/etc/logrotate.conf` we add: ``` # no packages own wtmp, or btmp -- we'll rotate them here /var/log/wtmp { missingok monthly create 0664 root utmp rotate 12 } /var/log/btmp { missingok monthly create 0660 root utmp rotate 12 } ``` This should be added in `/etc/logrotate.d/{w,b}tmp`.
Sign in to join this conversation.
No Milestone
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: evolix/ansible-roles#111
No description provided.