Should move several scripts from rcS.d/ to runlevels 1-5
pere at hungry.com
Tue May 18 10:16:23 UTC 2010
At the moment, there are several scripts running from rcS.d/ which I
believe should be moved to rc[1-5].d/.
The scripts in rcS.d/ are the only ones executed when booting into
single user mode, and I believe single user mode should allow one to
get an environment with only local disks mounted and without having to
wait for the network to come up. It should also be an environment
with as few processes as possible running, to allow file system fixes
and other tasks to be performed when needed. For this to happen, all
scripts depending on $remote_fs, and all scripts related to network
configuration need to move out of rcS.d/.
The scripts that need to run only once after boot should have a start
symlink in rc[1-5].d/, while those that should not run in single user
mode (which is almost the same as runlevel 1), should have a start
symlink in rc[2-5].d/.
Looking at <URL:http://lintian.debian.org/~pere/test-20100517.log>, I
Find this list of candidates for moving:
To move these scripts in a controlled fashion, we need to start at the
end of the list and move the script in dependency order from rcS.d/ to
the runlevel directories, to avoid getting the wrong boot ordering
Moving the network setup out into rc2.d/ will also speed up the boot,
as the scripts only depending on $local_fs can run in parallel with
any DHCP requests being performed.
More information about the initscripts-ng-devel