mirror of
https://github.com/samba-team/samba.git
synced 2025-01-11 05:18:09 +03:00
r5191: BUG 2299: better logrotate configuration from Levente Farkas <lfarkas@lfarkas.org>
(This used to be commit d9d5634821
)
This commit is contained in:
parent
91ef89daa0
commit
49a992c454
@ -1,4 +1,4 @@
|
||||
/var/log/samba/*.log {
|
||||
/var/log/samba/*.log /var/log/samba/log.smbd /var/log/samba/log.nmbd {
|
||||
notifempty
|
||||
missingok
|
||||
sharedscripts
|
||||
|
@ -43,7 +43,7 @@
|
||||
|
||||
# this tells Samba to use a separate log file for each machine
|
||||
# that connects
|
||||
#log file = /var/log/samba/log.%m
|
||||
#log file = /var/log/samba/%m.log
|
||||
# all information in one file
|
||||
log file = /var/log/samba/log.smbd
|
||||
|
||||
|
@ -1,11 +1,9 @@
|
||||
/var/log/samba/log.nmbd {
|
||||
/var/log/samba/*.log /var/log/samba/log.smbd /var/log/samba/log.nmbd {
|
||||
notifempty
|
||||
missingok
|
||||
sharedscripts
|
||||
copytruncate
|
||||
postrotate
|
||||
/usr/bin/killall -HUP nmbd
|
||||
endscript
|
||||
}
|
||||
|
||||
/var/log/samba/log.smbd {
|
||||
postrotate
|
||||
/usr/bin/killall -HUP smbd
|
||||
/bin/kill -HUP `cat /var/run/smbd.pid /var/run/nmbd.pid /var/run/winbindd.pid 2> /dev/null` 2> /dev/null || true
|
||||
endscript
|
||||
}
|
||||
|
@ -43,7 +43,7 @@
|
||||
|
||||
# this tells Samba to use a separate log file for each machine
|
||||
# that connects
|
||||
# log file = /var/log/samba/log.%m
|
||||
# log file = /var/log/samba/%m.log
|
||||
# all log information in one file
|
||||
log file = /var/log/samba/smbd.log
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user