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