Gentoo Archives: gentoo-user-br

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

Replies

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