Skip to content

DPotW: file-rc

file-rc ist ein Ersatz für die unter SysV-Derivaten und Linux üblichen Linkfarmen, die sich inzwischen halbwegs einheitlich unter /etc/rcx.d angesammelt haben. Statt Linkfarm gibt es ein einziges Konfigurationsfile, /etc/runlevel.conf

Ein Ausschnitt aus meiner /etc/runlevel.conf sieht so aus:


# This file was automatically generated by /usr/share/file-rc/rclink2file.sh.
# You can use your favourite editor or update-rc.d(8) to modify it.
# Read runlevel.conf(5) man page for more information about this file.
#
# Format:
# <sort> <off-> <on-levels>     <command>
01      0,1,6   -               /etc/init.d/kdm
02      -       S               /etc/init.d/mountvirtfs
05      -       1               /etc/init.d/single
05      -       S               /etc/init.d/bootlogd
05      -       S               /etc/init.d/initrd-tools.sh
05      -       S               /etc/init.d/keymap.sh
20      0,1,6   2,3,4,5         /etc/init.d/console-log
20      0,1,6   2,3,4,5         /etc/init.d/exim4
20      0,1,6   2,3,4,5         /etc/init.d/ifplugd
20      0,1,6   2,3,4,5         /etc/init.d/inetd
20      0,1,6   2,3,4,5         /etc/init.d/makedev
20      0,1,6   2,3,4,5         /etc/init.d/pcmcia
20      0,1,6   2,3,4,5         /etc/init.d/ssh
20      0,1,2,3,4,5,6   -       /etc/init.d/inn2
20      0,1,6   2,3,4,5         /etc/init.d/xinetd
20      0,1,2,3,4,5,6   -       /etc/init.d/snmpd
20      0,1,2,3,4,5,6   -       /etc/init.d/smokeping
20      0,1,6   -               /etc/init.d/munin-node
20      0,1,2,3,4,5,6   -       /etc/init.d/torrus-common
23      0,1,2,3,4,5,6   -       /etc/init.d/ntp-server

Ich denke, man sieht schön deutlich, wie das Ding gemacht ist. Jede Ziffer in den Spalten zwei und drei ersetzt einen
Link in der Linkfarm.

file-rc hat volle Unterstüzung des Debian-Abstraktionslayers, d.h. Packages, die update-rc.d und invoke-rc.d verwenden, merken nicht einmal, dass sie keine Symlinks verarbeiten. Leider hat das Debian-Abstraktionslayer die bekannte, lästige Lücke, die einen dazu zwingt, manchmal doch auf die Symlinks zuzugreifen.

Bei der Installation von file-rc wird die vorgefundene Linkfarm 1:1 in eine runlevel.conf umgesetzt, und andersrum, wobei ich das "andersrum" mangels Deinstallation noch nie wirklich ausprobiert habe.

Wie ich zu file-rc gekommen bin? Bei meiner ersten Debian-Installation (hamm, wenn sich noch jemand erinnert) habe ich noch die Liste der Packages vollständig durchgeschaut, und fand die Description interessant - ohne zu wissen, dass ich mir gleich mein ganzes System umstelle. Später hielt ich file-rc für den Default, und war ganz entsetzt, als ich auf meiner zweiten Debian-Installation (slink, falls sich, Ihr wisst schon) wieder die althergebrachte Link-Farm fand.

Trackbacks

No Trackbacks

Comments

Display comments as Linear | Threaded

kju on :

Super Tip, hab ich mir sofort installiert. Allerdings ist die Installation ja nichts für Zartbesaitete:

WARNING: The following essential packages will be removede This should NOT be done unless you know exactly what you are doing! sysv-rc (due to sysvinit) 0 upgraded, 1 newly installed, 1 to remove and 186 not upgraded. Need to get 36,3kB of archives. After unpacking 4096B disk space will be freed. You are about to do something potentially harmful To continue type in the phrase 'Yes, do as I say!' ?] Yes, do as I say!

Add Comment

Markdown format allowed
Enclosing asterisks marks text as bold (*word*), underscore are made via _word_.
Standard emoticons like :-) and ;-) are converted to images.
E-Mail addresses will not be displayed and will only be used for E-Mail notifications.
Form options