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
Message-Id: 461F8358.3080206@gmail.com
In Reply to: [gentoo-laptop] wireless and service dependencies by Will Briggs
1 -----BEGIN PGP SIGNED MESSAGE-----
2 Hash: SHA1
3
4 Hello,
5
6 Study /etc/conf.d/net.example and write a postup() function in /etc/conf.d/net ; Postup is my
7 preferred way of starting sshd and ntpd, because my wireless network is managed by
8 wpa_supplicant. Then, when I move my laptop from an access point to another, such services must
9 be restarted. Nothing better than having Gentoo restarting such services for you.
10
11 Here goes an example:
12
13 postup () {
14 /etc/init.d/ntpd restart
15 /etc/init.d/sshd restart
16 /etc.init.d/cupsd restart
17 }
18
19 For a more complicated example, including dhcp services on a per-AP basis, email me!
20
21 Good day.
22
23 Will Briggs wrote:
24 > G'day all,
25 >
26 > I'm having this problem. During startup both sshd and ntpd are not
27 > started with a warning: "scheduled to start when net.eth0 is started"
28 >
29 > eth0 is my wired network interface, eth1 is my wireless interface.
30 >
31 > I rarely used a wired network, often use the wireless network.
32 >
33 > This behaviour is fine, to certain extent, because if net.eth0 comes up
34 > I'd be happy to have sshd and ntpd start.
35 >
36 > However, I also want them to start if and when net.eth1 comes up.
37 >
38 > I have searched for a dependency setting somewhere but can't find. Can
39 > anyone point me in the right direction?
40 >
41 > Cheers,
42 >
43 > W.
44
45
46 - --
47 Fabio A. Correa D.
48
49 Physics Dept, Universidad Nacional, Bogota, Colombia
50 facorread@×××××.com
51 ffaaccdd@××××××××.uk facorread@××××××××.co
52 My webpage and OpenPGP key at http://facorread.150m.com
53 facorread@××××××××××.cc is not working anymore!!!
54 -----BEGIN PGP SIGNATURE-----
55 Version: GnuPG v1.4.6 (GNU/Linux)
56 Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
57
58 iD8DBQFGH4NYYOZCB4zf2uQRApknAJ4zcAC+S0ZjbeZX3Ux2LChBK8sV0wCfcjW9
59 tm6mzQzEWOP2Xwfg6xrT/YY=
60 =zRDp
61 -----END PGP SIGNATURE-----
62 --
63 gentoo-laptop@g.o mailing list

Replies

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