Note: Due to technical difficulties, the Archives are currently not up to date.
GMANE provides an alternative service for most mailing lists. c.f. bug 424647
List Archive: gentoo-laptop
On Fri, Apr 13, 2007 at 08:19:20AM -0500, Fabio A Correa wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Hello,
>
> Study /etc/conf.d/net.example and write a postup() function in /etc/conf.d/net ; Postup is my
> preferred way of starting sshd and ntpd, because my wireless network is managed by
> wpa_supplicant. Then, when I move my laptop from an access point to another, such services must
> be restarted. Nothing better than having Gentoo restarting such services for you.
>
> Here goes an example:
>
> postup () {
> /etc/init.d/ntpd restart
> /etc/init.d/sshd restart
> /etc.init.d/cupsd restart
> }
>
...
> >
> > This behaviour is fine, to certain extent, because if net.eth0 comes up
> > I'd be happy to have sshd and ntpd start.
Is there a specific reason why you have to restart sshd after you
restart/change network services? I don't know about ntpd and cupsd
because I start them only in some places, but I have sshd running all
the time (with RC_NET_STRICT_CHECKING="lo" in /etc/conf.d/rc) it works
correctly (it listens on 0.0.0.0 so any ip changes don't affect it).
I suppose cupsd and ntpd should be the same (well maybe they would have
to be configured to listen on 0.0.0.0, if they are listening on the ip
from an interface by default...)
yoyo
--
_
| icq: 177861806 jabber: yoyo@...
YoYo () Siska web: http://people.ksp.sk/~yoyo/
--
gentoo-laptop@g.o mailing list
|
|