[Bug 1097652] [NEW] dhclient cause error message when calling samba hook
Alain SAURAT
maisondouf at yahoo.fr
Wed Jan 9 09:56:23 UTC 2013
Public bug reported:
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 at 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 at 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
** Affects: samba (Ubuntu)
Importance: Undecided
Status: New
--
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to samba in Ubuntu.
https://bugs.launchpad.net/bugs/1097652
Title:
dhclient cause error message when calling samba hook
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/samba/+bug/1097652/+subscriptions
More information about the Ubuntu-server-bugs
mailing list