2.0.5: problem with HUP reopening logs

Giulio Orsero giulioo at tiscalinet.it
Wed Jul 21 07:17:28 GMT 1999


rh60/caldera1.3

2.0.x (before 2.0.5) PROBLEM: samba didn't reopen then logs after HUP.
I posted about this to samba-bugs; AT corrected the problem in 2.0.5-preXX,
but not completely it seems.

2.0.5 PROBLEM: samba reopens the logs after a HUP but logs only the first
connection to the new log, then it keeps logging to the old one.

Here is what I see:


# pwd
/var/log/samba
# smbclient|grep Version
Version 2.0.5
# pidof smbd
 
# ls -l
total 0
# /etc/rc.d/init.d/smb start
Starting samba:  smbd nmbd.
# ls -l
total 2
-rw-r--r--   1 root     root          129 Jul 21 07:13 log.nmb
-rw-r--r--   1 root     root          248 Jul 21 07:13 log.smb
# mv log.smb log.smb.1
# ls -l
total 2
-rw-r--r--   1 root     root          129 Jul 21 07:13 log.nmb
-rw-r--r--   1 root     root          248 Jul 21 07:13 log.smb.1
# killall -HUP smbd
# ls -l
total 2
-rw-r--r--   1 root     root          129 Jul 21 07:13 log.nmb
-rw-r--r--   1 root     root          313 Jul 21 07:13 log.smb.1
# smbclient '\\b\windows' -U baduser -N >/dev/null
# ls -l
total 3
-rw-r--r--   1 root     root          129 Jul 21 07:13 log.nmb
-rw-r--r--   1 root     root          457 Jul 21 07:14 log.smb
-rw-r--r--   1 root     root          313 Jul 21 07:13 log.smb.1
# smbclient '\\b\windows' -U baduser -N >/dev/null
# ls -l
total 3
-rw-r--r--   1 root     root          129 Jul 21 07:13 log.nmb
-rw-r--r--   1 root     root          457 Jul 21 07:14 log.smb
-rw-r--r--   1 root     root          770 Jul 21 07:14 log.smb.1
#

The first "smbclient...." opens a new log.smb log, the 2nd logs to the old
log.smb.1.

-- 
giulioo at tiscalinet.it


More information about the samba mailing list