dhclient hooks should not output messages on the root console

Bug #414017 reported by psl
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
dhcp3 (Ubuntu)
Triaged
Low
Unassigned
samba (Ubuntu)
Invalid
Low
Unassigned

Bug Description

Binary package hint: samba

Ubuntu 9.04 i386/amd_64 server
Samba 3.3.2

Message "* Reloading /etc/samba/smb.conf smbd only" is periodically written to root console.

I guess that interval is about 30 minutes.
I don't see such message in /var/log/samba/log.smbd or other samba log file.
I installed Samba during server install but I left default samba configuration, no SMB config files were edited.

Revision history for this message
psl (slansky) wrote :

Part of log.smbd. Restarting message was written to thye console at 15:55:59 and 16:24:59, events with SIGHUP:

[2009/08/15 15:36:32, 0] printing/print_cups.c:cups_connect(103) Unable to connect to CUPS server localhost:631 - Connection refused
[2009/08/15 15:59:59, 1] smbd/server.c:open_sockets_smbd(657) Reloading services after SIGHUP
[2009/08/15 15:59:59, 0] printing/print_cups.c:cups_connect(103) Unable to connect to CUPS server localhost:631 - Connection refused
[2009/08/15 15:59:59, 0] printing/print_cups.c:cups_connect(103) Unable to connect to CUPS server localhost:631 - Connection refused
[2009/08/15 16:24:59, 1] smbd/server.c:open_sockets_smbd(657) Reloading services after SIGHUP
[2009/08/15 16:24:59, 0] printing/print_cups.c:cups_connect(103) Unable to connect to CUPS server localhost:631 - Connection refused
[2009/08/15 16:24:59, 0] printing/print_cups.c:cups_connect(103) Unable to connect to CUPS server localhost:631 - Connection refused

Revision history for this message
Thierry Carrez (ttx) wrote :

Looks like you're running with DHCP ?
/etc/dhcp3/dhclient-enter-hook.d/samba restarts samba every time a new lease is BOUND|RENEW|REBIND|REBOOT|EXPIRE|FAIL|RELEASE|STOP.

Changed in samba (Ubuntu):
importance: Undecided → Low
status: New → Incomplete
Revision history for this message
psl (slansky) wrote :

I run DHCPD client at my machines.

Revision history for this message
Thierry Carrez (ttx) wrote :

OK, then altering/reloading samba configuration on DHCP lease changes is done by design, not a bug.

Changed in samba (Ubuntu):
status: Incomplete → Invalid
Revision history for this message
psl (slansky) wrote :

From my point of view bug is that message "* Reloading /etc/samba/smb.conf smbd only" is written to root console. This message should be written to log file or to /dev/null, not to the console of root.

It is good that you know why this message is written. Can you redirect it?

Revision history for this message
psl (slansky) wrote :

One more notice. I run DHCPD client but IP address is the same, no changes of IP address in time; once assigned, address is preserved at DHCP server....

Revision history for this message
Thierry Carrez (ttx) wrote :

So the issue is more about DHCP3 dhclient hooks directly outputting messages to root console rather than logging/redirecting them. Though this can be fixed on a per-hook basis, this is not specific to the samba hook.

summary: - Reloading /etc/samba/smb.conf smbd only
+ dhclient hooks should not output messages on the root console
Changed in dhcp3 (Ubuntu):
importance: Undecided → Low
status: New → Confirmed
Chuck Short (zulcss)
Changed in dhcp3 (Ubuntu):
status: Confirmed → Triaged
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.