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