Gentoo Archives: gentoo-user-br

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