dhclient cause error message when calling samba hook

Bug #1097652 reported by Alain SAURAT on 2013-01-09
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
samba (Ubuntu)
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

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  Edit
Everyone can see this information.

Other bug subscribers