[Pkg-utopia-maintainers] Bug#475188: Bug#475188: using NetworkManager /etc/network/if-up.d/openssh-server does not reload

Michael Biebl biebl at debian.org
Fri Jun 27 10:43:54 UTC 2008


Colin Watson wrote:
> reassign 475188 network-manager
> thanks
> 
> On Thu, Apr 10, 2008 at 08:44:13AM +0200, Jordi Pujol wrote:
>> El Wednesday 09 April 2008 18:30:15 Colin Watson va escriure:
>>> On Wed, Apr 09, 2008 at 05:44:46PM +0200, Jordi Pujol wrote:
>>>> using NetworkManager, the script /etc/network/if-up.d/openssh-server does
>>>> not reload, because it is called with the variable ADDRFAM equal
>>>> to "NetworkManager"
>>> That makes no sense. In what way is NetworkManager an address family?
>> Both we are sure of that is not very coherent, but a Debian testing release 
>> calls the programs in the directory if-up.d with this value when the 
>> interfaces are started from KDE Network Manager.
>> in this case the problem could be of Network Manager ?
> 
> Unless the network-manager maintainer says otherwise, yes, I think this
> is a network-manager bug. It just doesn't make sense to set ADDRFAM like
> this.

I took over this code from the previous maintainer of network-manager 
(CCed), so  I don't know the reasoning for choosing "NetworkManager" as 
ADDRFAM.

Some background details:
NM provides it's own dispatcher mechanism to run scripts via 
/etc/NetworkManager/dispatcher.d.
For interoperability with ifupdown, NM installs the 01ifupdown script by 
default, which calls the scripts in /etc/network/if-*.d/.
This 01ifupdown script sets ADDRFAM="NetworkManager".

Say, ssh provided a native NM dispatcher script to reload ssh in 
/etc/NetworkManager/dispatcher.d besides the "legacy" ifupdown hook.
To not reload ssh twice, you need a way to differentiate connections 
managed by ifupdown or NM.
This could be a reason for setting ADDRFAM="NetworkManager".

I CCed the original maintainer of NM for his opinion on this matter and 
the historical reason for this setting.

I don't have a strong preference in either way (keeping or changing this 
setting).

As NM manages different types of connections (dialup 
(PPP,PPPOE,GSM,CDMA), ethernet/wlan, vpn), I was wondering, what the 
correct ADDRFAM should be, if not NetworkManager.

Maybe the ifupdown maintainers can comment on this (CCed).


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: 260 bytes
Desc: OpenPGP digital signature
Url : http://lists.alioth.debian.org/pipermail/pkg-utopia-maintainers/attachments/20080627/07b83dfa/attachment.pgp 


More information about the Pkg-utopia-maintainers mailing list