1
0
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:
Gerald Carter 2005-02-03 04:38:48 +00:00 committed by Gerald (Jerry) Carter
parent 91ef89daa0
commit 49a992c454
4 changed files with 9 additions and 11 deletions

View File

@ -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

View File

@ -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

View File

@ -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
}

View File

@ -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