Gentoo Archives: gentoo-user

From: Peter Humphrey <peter@××××××××××××××.org>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] rc runlevel act strangely
Date: Sun, 19 Jun 2011 22:06:51
Message-Id: 201106192236.47399.peter@humphrey.ukfsn.org
In Reply to: Re: [gentoo-user] rc runlevel act strangely by Dale
1 On Sunday 19 June 2011 16:38:35 Dale wrote:
2
3 > I don't know when it got added but it is on mine. This is in the help
4 > page:
5 >
6 > rc Manage /etc/init.d scripts in runlevels
7 >
8 > It works something like this:
9 >
10 > root@fireball / # eselect rc add xdm default
11 > Adding xdm to following runlevels
12 > default [skipped]
13 > root@fireball / #
14 >
15 > It was skipped because it was already there but that's how it works.
16 >
17 > Neat huh?
18
19 The old method did much the same, but with openrc and baselayout-2 we lost
20 the alphabetical ordering of the entries.
21
22 Now, if I tell it $ eselect rc list
23
24 I get:
25
26 Available init scripts
27 acpid default
28 alsasound default
29 apache2 default
30 atom
31 bootmisc boot
32 chronyd default
33 consolefont boot
34 consolekit
35 cpufrequtils default
36 crypto-loop
37 cupsd default
38 dbus default
39 devfs sysinit
40 device-mapper boot
41 dmesg sysinit
42 dmeventd
43 dnsmasq default
44 fancontrol
45 fsck boot
46 fuse
47 git-daemon
48 gkrellmd
49 gpm no-x
50 hdparm
51 hostname boot
52 hwclock boot
53 keymaps boot
54 killprocs shutdown
55 lm_sensors default
56 local default
57 localmount boot
58 lvm boot
59 lvm-monitoring
60 mdadm
61 mdev
62 mdraid
63 modules boot
64 mount-ro shutdown
65 mtab boot
66 mysql default
67 mysqlmanager
68 net.eth0 default
69 net.lo boot
70 netmount default
71 network
72 nfs
73 nfsmount default
74 nscd
75 numlock boot
76 pciparm
77 portagexsd
78 procfs boot
79 pwcheck
80 pydoc-2.7
81 pydoc-3.1
82 root boot
83 rpc.idmapd
84 rpc.pipefs
85 rpc.statd
86 rpcbind
87 rsyncd
88 saslauthd
89 savecache shutdown
90 smartd default
91 spamd
92 sshd default
93 staticroute
94 swap boot
95 swclock
96 sysctl boot
97 sysfs
98 syslog-ng default
99 termencoding boot
100 twistd
101 udev sysinit
102 udev-dev-tarball
103 udev-mount
104 udev-postmount default
105 urandom boot
106 vixie-cron default
107 xdm default
108 xdm-setup
109
110 It's incomplete - what about all the services that are in more than one run-
111 level? It only lists the first run-level a service is in, for some value of
112 "first".
113
114 This is the old way:
115
116 $ sudo rc-update -s -v
117 local | default
118 apache2 | default no-x
119 mtab | boot
120 saslauthd |
121 net.eth0 | default no-x
122 procfs | boot
123 urandom | boot
124 rpc.pipefs |
125 mdev |
126 cupsd | default no-x
127 bootmisc | boot
128 nfs |
129 chronyd | default no-x
130 fsck | boot
131 sshd | default no-x
132 vboxweb-service | default
133 killprocs | shutdown
134 lm_sensors | default
135 xdm-setup |
136 nscd |
137 hdparm |
138 nfsmount | default no-x
139 swap | boot
140 vixie-cron | nonetwork default no-x
141 git-daemon |
142 crypto-loop |
143 xdm | default
144 pydoc-3.1 |
145 dmeventd |
146 net.lo | boot
147 mysql | default no-x
148 udev-dev-tarball |
149 savecache | shutdown
150 lvm | boot
151 consolekit |
152 rpcbind |
153 fuse |
154 dnsmasq | default no-x
155 device-mapper | boot
156 acpid | default no-x
157 termencoding | boot
158 rpc.idmapd |
159 localmount | boot
160 staticroute |
161 root | boot
162 dmesg | sysinit
163 hwclock | boot
164 network |
165 vboxdrv | default
166 pciparm |
167 atom |
168 udev-mount |
169 pwcheck |
170 lvm-monitoring |
171 mysqlmanager |
172 consolefont | boot
173 fancontrol |
174 rpc.statd |
175 alsasound | default
176 twistd |
177 netmount | default no-x
178 gpm | nonetwork no-x
179 vboxballoonctrl-service | default
180 devfs | sysinit
181 swclock |
182 dbus | default
183 numlock | boot
184 rsyncd |
185 sysfs |
186 sysctl | boot
187 syslog-ng | nonetwork default no-x
188 cpufrequtils | default no-x
189 spamd |
190 keymaps | boot
191 mdraid |
192 pydoc-2.7 |
193 portagexsd |
194 udev | sysinit
195 gkrellmd |
196 udev-postmount | default no-x
197 mdadm |
198 hostname | boot
199 mount-ro | shutdown
200 modules | boot
201 smartd | nonetwork default no-x
202
203 Far more information, but so much harder to find it. Methinks development is
204 not yet finished.
205
206 --
207 Rgds
208 Peter

Replies

Subject Author
Re: [gentoo-user] rc runlevel act strangely William Hubbs <williamh@g.o>