1 |
Olá! |
2 |
|
3 |
Para maior esclarecimento, leia o item 4 do Hanbook! |
4 |
|
5 |
------ |
6 |
4.b. Working with rc-update |
7 |
|
8 |
What is rc-update? |
9 |
|
10 |
Gentoo's init system uses a dependency-tree to decide what service |
11 |
needs to be started first. As this is a tedious task that we wouldn't |
12 |
want our users to have to do manually, we have created tools that ease |
13 |
the administration of the runlevels and init scripts. |
14 |
|
15 |
With rc-update you can add and remove init scripts to a runlevel. The |
16 |
rc-update tool will then automatically ask the depscan.sh script to |
17 |
rebuild the dependency tree. |
18 |
|
19 |
Adding and Removing Services |
20 |
|
21 |
You have already added init scripts to the "default" runlevel during |
22 |
the installation of Gentoo. At that time you might not have had a clue |
23 |
what the "default" is for, but now you should. The rc-update script |
24 |
requires a second argument that defines the action: add, del or show. |
25 |
|
26 |
To add or remove an init script, just give rc-update the add or del |
27 |
argument, followed by the init script and the runlevel. For instance: |
28 |
|
29 |
Code Listing 13: Removing Postfix from the default runlevel |
30 |
|
31 |
# rc-update del postfix default |
32 |
|
33 |
The rc-update -v show command will show all the available init scripts |
34 |
and list at which runlevels they will execute: |
35 |
|
36 |
Code Listing 14: Receiving init script information |
37 |
|
38 |
# rc-update -v show |
39 |
|
40 |
You can also run rc-update show (without -v) to just view enabled init |
41 |
scripts and their runlevels. |
42 |
------- |
43 |
|
44 |
|
45 |
On 7/23/07, Thiago Vinhas <thiago@××××××.org> wrote: |
46 |
> Digite "rc-update -a dhcpd default" e reboote a máquina. |
47 |
> |
48 |
> |
49 |
> |
50 |
> On 7/23/07, Edilson Lima <ledilson@×××××.com > wrote: |
51 |
> > Bom dia pessoal! |
52 |
> > |
53 |
> > Tenho um servidor com dhcp/squid/bind/shorewall. |
54 |
> > |
55 |
> > De alguns dias pra ca, quando reinicio a maquina o dhcp não "sobe" |
56 |
> > |
57 |
> > server ~ # rc-status | grep dhcp |
58 |
> > dhcpd |
59 |
> |
60 |
> [ off ] |
61 |
> > |
62 |
> > Mas sei que a conf do dhcp está ok. |
63 |
> > Tanto que ao executar: |
64 |
> > |
65 |
> > server ~ # rc |
66 |
> > * Starting dhcpd ... |
67 |
> |
68 |
> |
69 |
> [ ok ] |
70 |
> > |
71 |
> > Ele funciona até o servidor ser reiniciado novamente... |
72 |
> > |
73 |
> > Alguma luz? |
74 |
> > |
75 |
> > Grato a todos! |
76 |
> > |
77 |
> > -- |
78 |
> > |
79 |
> > Edilson Lima |
80 |
> > |
81 |
> > |
82 |
> |
83 |
> |
84 |
> |
85 |
> -- |
86 |
> Abs, |
87 |
> Thiago Vinhas |
88 |
|
89 |
|
90 |
-- |
91 |
[]'s |
92 |
|
93 |
Jackson Lopes |
94 |
-- |
95 |
gentoo-user-br@g.o mailing list |