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?
signature.asc
Description: OpenPGP digital signature