[Pkg-utopia-maintainers] Bug#682497: init.d: LSB headers: please Provides: $network

Michael Biebl biebl at debian.org
Wed Aug 22 18:40:14 UTC 2012


Hi,

network-manager does not block during boot until a network connection is
established contrary to ifupdown.

Letting the network-manager sysv init script provide $network would be
wrong because of that, because network-manager being started doesn't
mean a network connection is available.

network-manager ships a tool called nm-online, which blocks until a
network connection has been established (or an optional timeout is reached).

This tool is used in
 /lib/systemd/system/NetworkManager-wait-online.service:

[Unit]
Description=Network Manager Wait Online
Requisite=NetworkManager.service
After=NetworkManager.service
Wants=network.target
Before=network.target

[Service]
Type=oneshot
ExecStart=/usr/bin/nm-online -q --timeout=30

[Install]
WantedBy=network.target


This systemd service is not activated by default, as it is only a
hack/workaround for broken software which can't handle dynamically
changing networks.

A similar service could be written for sysv. Such a service could have a
provides: $network.

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/20120822/3ec02047/attachment.pgp>


More information about the Pkg-utopia-maintainers mailing list