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