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