[Pkg-utopia-maintainers] [Pkg-samba-maint] Bug#669891: samba: Samba need to be start manualy at boot

Michael Biebl biebl at debian.org
Sun Apr 22 14:38:18 UTC 2012


On 22.04.2012 07:56, Christian PERRIER wrote:

> So, samba init script explicitly depends on any init script providing
> "$network"
> 
> The network-manager init script does *not* provide "network". This may
> be on purpose, I don't know. But if there is a bug, it is not in samba
> but rather in network-manager. But let n-m maintainers give their
> advice, there is maybe a very good reason for n-m init script to not
> provide "network".

NetworkManager brings up devices asynchronously, ie. it doesn't block
during boot until a interface is up. So your problem wouldn't really be
fixed, as your boot process would still be racy. Does I don't think the
/etc/init.d/network-manager init script should provide $network.

It does provide ifupdown integration to some extent, i.e. it runs the
if-up.d/if-down.d hooks when interfaces are taken out / brough down.
Doesn't samba also use ifupdown hooks to get notification about network
changes? How does samba deal with the fact that a network is possibly
not up during boot?

Imho, a the correct way to fix this, is to fix samba to make it listen
for network changes (via netlink).

There is another hack (which of course I don't recommend to be added to
the samba Debian package):

Change /etc/init.d/samba and add a call to "nm-online" before you start
the samba daemons.
This tool will exit as soon as NetworkManager has established a network
connection. It will exit after a 30 second timeout, if no connection
could be established during that time. So your boot won't block
indefinitely.

To sum up: I don't plan to add  Provides: $network to the NM init
script, for the given reasons.
Also, $network is a virtual facility, which I can't simply modify by
adding a "Provides: $network" to the LSB header, as insserv doesn't
allow that.

So, I'm not sure what to do about this bug in network-manager. If it
should be re-assigned/closed/...

Cheers,
Michael


-- 
Why is it that all of the instruments seeking intelligent life in the
universe are pointed away from Earth?

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 900 bytes
Desc: OpenPGP digital signature
URL: <http://lists.alioth.debian.org/pipermail/pkg-utopia-maintainers/attachments/20120422/ecf2b464/attachment-0002.pgp>


More information about the Pkg-utopia-maintainers mailing list