[pkg-wpa-devel] r991 - in /wpasupplicant/trunk/debian: changelog ifupdown/functions.sh ifupdown/ifupdown.sh rules wpasupplicant.postinst wpasupplicant.postrm wpasupplicant.preinst wpasupplicant.wpa-ifupdown.init
Kel Modderman
kel at otaku42.de
Mon Jan 7 22:57:24 UTC 2008
On Tuesday 08 January 2008 02:38:53 Reinhard Tartler wrote:
> kelmo-guest at users.alioth.debian.org writes:
> > + * Handle removal of /etc/init.d/wpa-ifupdown from package on upgrade.
> > This + is done using preinst, postinst and postrm trio similar to that
> > which + facilitated the removal of /etc/init.d/wpasupplicant.
> > + * Create sendsigs omission pidfile in /lib/init/rw/sendsigs.omit.d/
> > for + wpa_supplicant and wpa_cli processes managed by ifupdown.
> > Determine + runlevel when wpa_cli roaming daemon is active, and allow
> > ot to be killed + in runlevels 0 and 6.
> > +
> > + -- Kel Modderman <kel at otaku42.de> Sun, 06 Jan 2008 12:15:43 +1000
>
> Ubuntu does not have a /lib/init/rw, since /var/run is mounted as
> tmpfs. I've seen that you actually check that
> /lib/init/rw/sendsigs.omit.d/ actually exists, but at least the comments
> should be a bit more clear about that.
This is a work in progress. Ubuntu provided Debian with a patch to omit
processes from sendsigs killall5. This finally allows us to let
wpa_supplicant processes live until networking stops, rather than having them
killed prematurely by sendsigs.
In fact we went so far as to provide an initscript to make sure interfaces
using wpa_supplicant were taken down properly before
sendsigs, /etc/init.d/wpa-ifupdown. This was a blatent workaround, so I am
trying to work a new solution.
Going back to the Ubuntu patch, it has been extended by Debian due to having a
severe limitation. Ubuntu only ships /var/run/sendsigs.omit file. ifup/ifdown
events are starting and stopping processes on demand, therefore need to add
and remove process id's from omission. This is problematic to do with a
single /var/run/sendsigs.omit file. We can add Ubuntu compatibility with
regards to sendsigs omission if they do something similar
in /var/run/sendsigs.omit.d/ or provide a better interface than appending
to /var/run/sendsigs.omit file.
It was discussed in #pkg-sysvinit with pere.
>
> What package does read this directory /lib/init/rw/sendsigs.omit.d
> directory?
initscripts.
Thanks, Kel
More information about the Pkg-wpa-devel
mailing list