Gentoo Archives: gentoo-user-br

From: Thiago Henrique <thenrique@×××××.com>
To: gentoo-user-br@l.g.o
Subject: Re: [gentoo-user-br] Ajuda com dhcpd no rc (off-topic)
Date: Tue, 24 Jul 2007 11:52:00
Message-Id: b74ebede0707240451o384dd444v1392584e50101051@mail.gmail.com
In Reply to: RE: [gentoo-user-br] Ajuda com dhcpd no rc (off-topic) by "Prado
1 Ja olhou nos logs ?
2 Procurou no messages pra ver se tem algo relacionado ao dhcp ?
3 Habilitou o RC_VERBOSE no /etc/conf.d/rc ?
4 Ja verificou se a sua placa de rede esta como modulo ou builtin no kernel ?
5 Ja verificou se a sua placa de rede esta com o modulo carregado no boot ?
6
7 Tem N possibilidades para esse erro. Passe os logs para gente, que fica mais
8 facil ajudar :D
9
10
11
12
13
14 On 7/24/07, Prado, Renato (R.) <rprado@×××××××.com> wrote:
15 >
16 > Mas a idéia é justamente causar um erro para que a mensagem que vier dê
17 > alguma pista sobre o ocorrido :-)
18 >
19 > ------------------------------
20 > *From:* Edilson Lima [mailto:ledilson@×××××.com]
21 > *Sent:* segunda-feira, 23 de julho de 2007 17:50
22 > *To:* gentoo-user-br@l.g.o
23 > *Subject:* Re: [gentoo-user-br] Ajuda com dhcpd no rc (off-topic)
24 >
25 > Não tentei ainda mas... o dhcp detende de rede... que ainda não ta ligada
26 > no boot né?
27 >
28 > On 7/23/07, Prado, Renato (R.) <rprado@×××××××.com> wrote:
29 > >
30 > > Já tentou colocar em outro runlevel para ver se muda alguma coisa?
31 > > Coloca no boot, talvez aparece alguma mensagem de erro que ajude em algo...
32 > >
33 > > ------------------------------
34 > > *From:* Edilson Lima [mailto:ledilson@×××××.com]
35 > > *Sent:* segunda-feira, 23 de julho de 2007 13:12
36 > > *To:* gentoo-user-br@l.g.o
37 > > *Subject:* Re: [gentoo-user-br] Ajuda com dhcpd no rc (off-topic)
38 > >
39 > >
40 > > Quem dera... rs
41 > >
42 > > *server dhcp # etc-update
43 > > Scanning Configuration files...
44 > > Exiting: Nothing left to do; exiting. :)
45 > > *
46 > >
47 > >
48 > > On 7/23/07, Prado, Renato (R.) <rprado@×××××××.com > wrote:
49 > > >
50 > > > O etc-update está em dia? Talvez seja alguma pendenga nos init
51 > > > scripts...
52 > > >
53 > > > ------------------------------
54 > > > *From:* Edilson Lima [mailto:ledilson@×××××.com]
55 > > > *Sent:* segunda-feira, 23 de julho de 2007 12:31
56 > > > *To:* gentoo-user-br@l.g.o
57 > > > *Subject:* Re: [gentoo-user-br] Ajuda com dhcpd no rc (off-topic)
58 > > >
59 > > >
60 > > > Então Renato...
61 > > >
62 > > > Ele não acha que o dhcp está rodando...
63 > > >
64 > > > tanto que quando eu rodo:
65 > > >
66 > > > *server ~ # rc*
67 > > > **
68 > > > Ele liga o ve que o dhcp está parado e liga ele...
69 > > >
70 > > > Doidera né?
71 > > >
72 > > >
73 > > >
74 > > > On 7/23/07, Prado, Renato (R.) <rprado@×××××××.com > wrote:
75 > > > >
76 > > > > Só para confirmar, depois do boot tenta um /etc/init.d/dhcpd
77 > > > > restart e vê se ele tenta parar o serviço (daí você consegue saber se o
78 > > > > gentoo "acha" que o o dhcp está rodando)...
79 > > > >
80 > > > > ------------------------------
81 > > > > *From:* Edilson Lima [mailto:ledilson@×××××.com]
82 > > > > *Sent:* segunda-feira, 23 de julho de 2007 12:02
83 > > > > *To:* gentoo-user-br@l.g.o
84 > > > > *Subject:* Re: [gentoo-user-br] Ajuda com dhcpd no rc (off-topic)
85 > > > >
86 > > > >
87 > > > > Acho que eu não expliquei direito...
88 > > > >
89 > > > > O dhcp está no runlevel default:
90 > > > >
91 > > > > *server ~ # rc-update show | grep dhcp
92 > > > > dhcpd | default*
93 > > > >
94 > > > > e mesmo assim não liga. Ele aparece no rc-status como "*[ off ]*"
95 > > > >
96 > > > > *server ~ # rc-status | grep dhcp
97 > > > > dhcpd [ off ] *
98 > > > > **
99 > > > >
100 > > > > já removi ele:
101 > > > >
102 > > > > *server ~ # rc-update del dhcpd
103 > > > > * dhcpd removed from the following runlevels: default
104 > > > > * rc-update complete.*
105 > > > >
106 > > > > **
107 > > > > e adicionei de novo:
108 > > > >
109 > > > > *server ~ # rc-update add dhcpd default
110 > > > > * dhcpd added to runlevel default
111 > > > > * rc-update complete.*
112 > > > >
113 > > > > **
114 > > > > E mesmo assim ele não liga sozinho.
115 > > > >
116 > > > > porem se eu executo:
117 > > > >
118 > > > > *server ~ # /etc/init.d/dhcpd start*
119 > > > > **
120 > > > > Ele liga e funciona perfeitamente...
121 > > > >
122 > > > > Conto com a ajuda de vocês... não sei mais o que tentar...
123 > > > >
124 > > > > Abraço!
125 > > > >
126 > > > > Edilson Lima
127 > > > >
128 > > > >
129 > > > >
130 > > > >
131 > > > >
132 > > > >
133 > > > > On 7/23/07, Jackson Lopes <jacksonlopes@×××××.com > wrote:
134 > > > > >
135 > > > > > Olá!
136 > > > > >
137 > > > > > Para maior esclarecimento, leia o item 4 do Hanbook!
138 > > > > >
139 > > > > > ------
140 > > > > > 4.b. Working with rc-update
141 > > > > >
142 > > > > > What is rc-update?
143 > > > > >
144 > > > > > Gentoo's init system uses a dependency-tree to decide what service
145 > > > > > needs to be started first. As this is a tedious task that we
146 > > > > > wouldn't
147 > > > > > want our users to have to do manually, we have created tools that
148 > > > > > ease
149 > > > > > the administration of the runlevels and init scripts.
150 > > > > >
151 > > > > > With rc-update you can add and remove init scripts to a runlevel.
152 > > > > > The
153 > > > > > rc-update tool will then automatically ask the depscan.sh script
154 > > > > > to
155 > > > > > rebuild the dependency tree.
156 > > > > >
157 > > > > > Adding and Removing Services
158 > > > > >
159 > > > > > You have already added init scripts to the "default" runlevel
160 > > > > > during
161 > > > > > the installation of Gentoo. At that time you might not have had a
162 > > > > > clue
163 > > > > > what the "default" is for, but now you should. The rc-update
164 > > > > > script
165 > > > > > requires a second argument that defines the action: add, del or
166 > > > > > show.
167 > > > > >
168 > > > > > To add or remove an init script, just give rc-update the add or
169 > > > > > del
170 > > > > > argument, followed by the init script and the runlevel. For
171 > > > > > instance:
172 > > > > >
173 > > > > > Code Listing 13: Removing Postfix from the default runlevel
174 > > > > >
175 > > > > > # rc-update del postfix default
176 > > > > >
177 > > > > > The rc-update -v show command will show all the available init
178 > > > > > scripts
179 > > > > > and list at which runlevels they will execute:
180 > > > > >
181 > > > > > Code Listing 14: Receiving init script information
182 > > > > >
183 > > > > > # rc-update -v show
184 > > > > >
185 > > > > > You can also run rc-update show (without -v) to just view enabled
186 > > > > > init
187 > > > > > scripts and their runlevels.
188 > > > > > -------
189 > > > > >
190 > > > > >
191 > > > > > On 7/23/07, Thiago Vinhas < thiago@××××××.org> wrote:
192 > > > > > > Digite "rc-update -a dhcpd default" e reboote a máquina.
193 > > > > > >
194 > > > > > >
195 > > > > > >
196 > > > > > > On 7/23/07, Edilson Lima < ledilson@×××××.com > wrote:
197 > > > > > > > Bom dia pessoal!
198 > > > > > > >
199 > > > > > > > Tenho um servidor com dhcp/squid/bind/shorewall.
200 > > > > > > >
201 > > > > > > > De alguns dias pra ca, quando reinicio a maquina o dhcp não
202 > > > > > "sobe"
203 > > > > > > >
204 > > > > > > > server ~ # rc-status | grep dhcp
205 > > > > > > > dhcpd
206 > > > > > >
207 > > > > > > [ off ]
208 > > > > > > >
209 > > > > > > > Mas sei que a conf do dhcp está ok.
210 > > > > > > > Tanto que ao executar:
211 > > > > > > >
212 > > > > > > > server ~ # rc
213 > > > > > > > * Starting dhcpd ...
214 > > > > > >
215 > > > > > >
216 > > > > > > [ ok ]
217 > > > > > > >
218 > > > > > > > Ele funciona até o servidor ser reiniciado novamente...
219 > > > > > > >
220 > > > > > > > Alguma luz?
221 > > > > > > >
222 > > > > > > > Grato a todos!
223 > > > > > > >
224 > > > > > > > --
225 > > > > > > >
226 > > > > > > > Edilson Lima
227 > > > > > > >
228 > > > > > > >
229 > > > > > >
230 > > > > > >
231 > > > > > >
232 > > > > > > --
233 > > > > > > Abs,
234 > > > > > > Thiago Vinhas
235 > > > > >
236 > > > > >
237 > > > > > --
238 > > > > > []'s
239 > > > > >
240 > > > > > Jackson Lopes
241 > > > > > --
242 > > > > > gentoo-user-br@g.o mailing list
243 > > > > >
244 > > > > >
245 > > > >
246 > > >
247 > > >
248 > > >
249 >
250 >
251 > --
252 >
253 > Edilson Lima
254 > Division Byte!
255 > Tel: (11) 3436-8388
256 > Cel: (11) 8100-1899
257 >

Replies

Subject Author
Re: [gentoo-user-br] Ajuda com dhcpd no rc (off-topic) Edilson Lima <ledilson@×××××.com>