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