Gentoo Archives: gentoo-laptop

From: Fabio A Correa <facorread@×××××.com>
To: gentoo-laptop@l.g.o
Subject: Re: [gentoo-laptop] wireless and service dependencies
Date: Fri, 13 Apr 2007 13:20:56
In Reply to: [gentoo-laptop] wireless and service dependencies by Will Briggs
Hash: SHA1


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

For a more complicated example, including dhcp services on a per-AP basis, email me!

Good day.

Will Briggs wrote:
> G'day all, > > I'm having this problem. During startup both sshd and ntpd are not > started with a warning: "scheduled to start when net.eth0 is started" > > eth0 is my wired network interface, eth1 is my wireless interface. > > I rarely used a wired network, often use the wireless network. > > This behaviour is fine, to certain extent, because if net.eth0 comes up > I'd be happy to have sshd and ntpd start. > > However, I also want them to start if and when net.eth1 comes up. > > I have searched for a dependency setting somewhere but can't find. Can > anyone point me in the right direction? > > Cheers, > > W.
- -- Fabio A. Correa D. Physics Dept, Universidad Nacional, Bogota, Colombia facorread@×××××.com ffaaccdd@××××××××.uk facorread@××××××××.co My webpage and OpenPGP key at facorread@××××××××××.cc is not working anymore!!! -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) Comment: Using GnuPG with Mozilla - iD8DBQFGH4NYYOZCB4zf2uQRApknAJ4zcAC+S0ZjbeZX3Ux2LChBK8sV0wCfcjW9 tm6mzQzEWOP2Xwfg6xrT/YY= =zRDp -----END PGP SIGNATURE----- -- gentoo-laptop@g.o mailing list


Subject Author
Re: [gentoo-laptop] wireless and service dependencies Will Briggs <will@××××××××××××××××××.au>
Re: [gentoo-laptop] wireless and service dependencies YoYo Siska <yoyo@××××××.sk>