Ciao Davide!

Just to be sure, please keep the pkg-fso-maint@ cc:ed, TIA.

On Mon, 23 Mar 2009 18:13:23 +0100, David Paleino wrote:
> On Mon, 23 Mar 2009 17:45:36 +0100, Luca Capello wrote:
>> Instead, since AFAIK all DHCP clients wicd can use (including udhcpc
>> once bug #520014 will be fixed) support a "write the PID to a file"
>> option, the best solution would be to check for the existence of such a
>> PID file (usually /var/run/$PROGRAM.$IFACE.pid) and then kill this
>> specific process.
>
> I'm using dhclient (from dhcp3-client), and the pidfile
> is /var/run/dhclient.pid :).

Sorry, I should have been more verbose: wicd does not set any
interface-specific pidfile, while the Debian ifupdown package does, on
my laptop (stripped out the useless information)
=====
l...@gismo:~$ ps aux | grep wlan0
root      3032 [...] /sbin/wpa_supplicant -B -P 
/var/run/wpa_supplicant.wlan0.pid -i [...]
root      3436 [...] dhclient3 -pf /var/run/dhclient.wlan0.pid -lf [...]
l...@gismo:~$
=====

> At least dhclient has a -pf option to specify the pidfile location. As
> soon as I have chances of getting my hands on #520014 (and all the
> other bugs you're filing :P), I'll have a look at other supported (or
> not-yet-supported) clients to see if they have similar options.

Double-checking is always a good thing, FYI I did it last night :-)

>> I would like to find some consensus on this solution before starting to
>> implement it ;-)
>
> What solution? :)
> The best solution to me seems killing the pid written in the proper
> pidfile by wicd.

Exactly: but this requires implementing it directly in wicd.

> However, I'm kind of delaying wicd bugfixing waiting the 1.6 release.

I will check the 1.6 codebase and report back my tests.  Moreover, I
would also say that if upstream comes up with another solution, we
should avoid diverging from it.

Thx, bye,
Gismo / Luca

Attachment: pgpwdplupUoJd.pgp
Description: PGP signature

_______________________________________________
pkg-fso-maint mailing list
[email protected]
http://lists.alioth.debian.org/mailman/listinfo/pkg-fso-maint

Reply via email to