dhclient cause error message when calling samba hook

Bug #1097652 reported by Alain SAURAT
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
samba (Ubuntu)
Confirmed
Low
Unassigned

Bug Description

When using dhclient to renew IP, /etc/dhcp3/dhclient-enter-hooks.d/samba is called.
Unfortunatly, this script use an old method to reload smbd (/usr/sbin/invoke-rc.d smbd reload).
This call give some error messages.

papounet@amd8papou:~$ sudo dhclient
Rather than invoking init scripts through /etc/init.d, use the service(8)
utility, e.g. service smbd reload

Since the script you are attempting to invoke has been converted to an
Upstart job, you may also use the reload(8) utility, e.g. reload smbd
RTNETLINK answers: File exists
papounet@amd8papou:~$

You can apply a little patch to avoid this in /debian/samba-common.dhcp

71c71
< [ -x /etc/init.d/smbd ] && /usr/sbin/invoke-rc.d smbd reload
---
> [ -x /etc/init.d/smbd ] && service smbd reload

Revision history for this message
Serge Hallyn (serge-hallyn) wrote :

Thanks for submitting this bug.

Changed in samba (Ubuntu):
status: New → Confirmed
importance: Undecided → Low
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.