SYSV-RC-CONF(8)
๐ SYSV-RC-CONF ๐
okay bestie, welcome to sysv-rc-conf (section 8 of the manual, she's a big girl now) โ the run-level configuration tool for SysV-like init script links โจ
๐ธ NAME ๐ธ
sysv-rc-conf โ run-level configuration for SysV like init script links ๐
๐ SYNOPSIS ๐
sysv-rc-conf [ options ]
sysv-rc-conf --list [ service ]
sysv-rc-conf [ --level levels ] service <on|off>
๐ฆ DESCRIPTION ๐ฆ
so basically sysv-rc-conf gives you an easy to use interface for managing /etc/rc{runlevel}.d/ symlinks. and the interface comes in two different flavors: one that just lets you turn services on or off (simple queen behavior), and another that lets you do more fine tuned management of the symlinks (main character control freak behavior). she's a replacement for programs like ntsysv(8) or rcconf(8), no cap ๐ฅ
and guess what โ sysv-rc-conf can also be used at the command line when you already know what changes you want to make to the symlinks. the syntax is borrowed from chkconfig(8), although it does not follow it exactly. iykyk ๐
โจ GENERAL OPTIONS โจ
-c DIRECTORY,--cache=DIRECTORYโ the directory where the priority numbers, old runlevel configuration, etc. should be stored. this defaults to/var/lib/sysv-rc-conf. peep the FILES section down below and also the--Purgeoption ๐-r DIRECTORY,--root=DIRECTORYโ the root directory to use. defaults to/. this comes in handy if the root file system is mounted somewhere else, like when you're using a rescue disk ๐-P,--Purgeโ purge the information stored in the cache file. see the FILES section below and the--cacheoption ๐งน-v FILE,--verbose=FILEโ print verbose information toFILE๐-V,--Versionโ print version information to STDOUT and exit, periodt ๐
๐ GUI RELATED OPTIONS ๐
-o [ see description ],--order=[ see description ]โ allows various sorting orders and ways to display the rows. the argument can be made up of any of the following:aโ sort the rows alphabetically. this is the default if the-ooption isn't specified.nโ show the priority numbers along with the name of the service.pโ sorts by the priority numbers.- level โ level can be any runlevel,
0-9orS. this controls which runlevel the priority numbers are sorted at. it only makes sense to use this in conjuntion withp. if omitted, the priority numbers are sorted by the current runlevel the system is in. (yes the original says "conjuntion", she's quirky like that ๐ )
-p,--priorityโ alternate layout. instead of just showing a checkbox, the priority of the service and theSorKare allowed to be edited. this is for more fine tuned control than the default layout allows ๐๏ธ-s levels,--show=levelsโ which runlevels to show. this defaults to up to 8 of the runlevels available on the system. usually this means it will show1,2,3,4,5,0,6, andS. the syntax calls for the runlevels to be allruntogether. for instance, to show runlevels 3, 4, and 5 the syntax would be--show=345. also see--order๐
๐ CLI RELATED OPTIONS ๐
--level levelsโ the runlevels this operation will affect. levels can be any number from0-9orS. for example,--level 135will affect runlevels 1, 3, and 5. if--levelis not set, the default is to affect runlevels 2, 3, 4, and 5. this option is only used for the command line interface โ see the section below labled USING THE CLI for more information. (again, "labled" is what she says, i'm just the messenger ๐)--list [name]โ this option will list all of the services and if they are stopped or started when entering each runlevel. if name is specified, only the information for that service is displayed ๐
๐ง USING THE GUI ๐ง
๐ Note ๐
when using either GUI layout described below, all configuration changes to the symlinks will happen immediately, not when the program exits. like she does NOT wait, she's impatient, she's a baddie ๐ญ
๐ฅ๏ธ Using the Default layout ๐ฅ๏ธ
the default (simple) layout shows in a grid fashion all of the services that are in init.d and which runlevels they are turned on at. for example, where the ssh row and 3 column intersect, if there is an 'X' in the box there, that means the ssh service will be turned on when entering runlevel 3. if there is no checkbox it can mean that either there are no links to the service in that specific runlevel, or that the service is turned off when entering that runlevel. if more configuration detail is needed, see the next paragraph and the --priority option ๐
๐๏ธ Using the Priority layout ๐๏ธ
the priority (advanced) layout also uses a grid fashion, but instead of checkboxes there are text boxes that can have a few different values. if the text box is blank, that means there isn't a symlink in that runlevel for that service. this means that when changing into that runlevel the service will not be started or stopped โ which is significant, bestie, don't sleep on it. if the text box starts with the letter K that means that the service will be stopped when entering that runlevel. if the text box starts with the letter S that means the service will be started when entering that runlevel. the two digits following is the order in which the services are started. that means that S08iptables would start before S20ssh. for more information see your system documentation ๐
๐ฎ Controls ๐ฎ
to move around use the arrow keys, or if the terminal support it, the mouse ๐ญ. typically there is more then one page of services (unless the terminal screen is large), to move between the pages use CTRL-n or CTRL-p, or simply arrow key down or up at the bottom or top of the screen, respectively. the bottom of the screen also shows these movement commands for quick reference. to restore the symlinks back to their original state before the sysv-rc-conf was run, press the r key. the h key will display a quick reference help screen ๐
โ Default layout โ
when using the default layout use the space bar to toggle the service on / off. an 'X' in the checkbox indicates that the service is on ๐
๐ง Priority layout ๐ง
the priority layout uses the default movement keys. in order to edit the fields you can use CTRL-d to delete the character in front of the cursor or backspace to backspace. use CTRL-b or CTRL-f to move the cursor backwards or forwards within the field. note that only S, K, or any digit is allowed to be entered into the field ๐
โถ๏ธ Starting / Stopping Services โ๏ธ
to start a service now, press the "+" or "=" key. to stop a service now, press the "-" key.
this will call /etc/init.d/service start or /etc/init.d/service stop ๐
๐ป USING THE CLI ๐ป
if the desired modifications to the symlinks are known and only one quick change is needed, then you can use a CLI interface to sysv-rc-conf. examples:
# sysv-rc-conf --level 35 ssh off
# sysv-rc-conf atd on
the first example will turn ssh off on levels 3 and 5. the second example turns atd on for runlevels 2, 3, 4, and 5. slay ๐ฅ
๐ FILES ๐
note: feel free to skip this section ๐ (she literally said that, i'm not being shady)
sysv-rc-conf stores a cache of all the symlink information from /etc/rc{runlevel}.d/ in /var/lib/sysv-rc-conf/services (see the --cache option to change the location of this file). it uses this cache to make an intelligent decision on what priority number to give the K or S link when they are changed in the simple layout. this cache is updated/created everytime the program is launched. the program needs to run with root privileges in order to update the cache. the format of the file is as follows:
RUNLEVEL S|K PRIORITY SERVICE
here's a few examples:
2 K 74 ntpd
2 K 50 xinetd
3 S 08 iptables
3 S 80 sendmail
sysv-rc-conf will first see if it can get an exact match from the cache. for example, if the symlink for cron in runlevel 3 is S89cron and you uncheck it, sysv-rc-conf will first see if there is an entry in the cache that looks like 3 K nn cron, if so it will use nn for the priority number.
if there wasn't a match, sysv-rc-conf will then see if there is another S or K (whichever you're switching to, so in this example, K) entry on a different runlevel โ so an entry like i K nn cron, where i is any runlevel. if found, the link will use nn.
if there still wasn't a match, sysv-rc-conf will look for the opposite of S or K in any run level, and use 100 - that priority. so in our example, i S nn cron. if nn is 20, then it will use 80 (100 - 20), since that is typically the way that the priority numbers are used.
if there still isn't a match, the default priority of 20 for S links is used, and the default priority of 80 for K links is used. periodt ๐
๐ค COMPATIBILITY ๐ค
sysv-rc-conf should work on any Unix like system that manages services when changing runlevels by using symlinks in /etc/rc{runlevel}.d/. refer to your system documentation to see if that's the case (usually there's a /etc/init.d/README) ๐
โ ๏ธ CAVEATS โ ๏ธ
sysv-rc-conf only manages the symlinks in the rc{runlevel}.d directories. it's possible that packages may have other ways of being disabled or enabled. so like, don't come for her if something else is doing its own thing ๐ญ
because Curses takes over the screen sometimes error messages won't be seen on the terminal. if you run across any weird problems try redirecting STDERR to a file when you execute the program.
for example:
# sysv-rc-conf 2> err.out
๐ REPORTING BUGS ๐
report bugs to Joe Oppegaard <joe@pidone.org> ๐ฌ
๐ SEE ALSO ๐
init(8), runlevel(8), chkconfig(8), /etc/init.d/README
www: http://sysv-rc-conf.sourceforge.net
ftp: ftp://ftp.pidone.org/sysv-rc-conf
๐ AUTHOR ๐
Joe Oppegaard <joe@pidone.org> ๐
and that's the whole page bestie!! she's from perl v5.32.1, dated 2021-10-31, and she lives in section 8 of the manual (SYSV-RC-CONF(8) both as her title and her footer, iconic of her tbh). go forth and manage those symlinks responsibly, mwah ๐
โจ๐ฆ
๐ฆ where this page comes from
- debian bookworm: sysv-rc-conf 0.99-10
- debian trixie: sysv-rc-conf 0.99-10
- ๐ girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms