[Marc Haber]
> Hi,
Hi. How exactly was this machine migrated to dependency based boot
sequencing? The migration was not done correctly. Do you have the
file /etc/init.d/.legacy-bootordering? If so, try dpkg-reconfigure
sysv-rc to redo the migration.
The start symlinks S* in rc0.d and rc6.d should be stop symlinks.
Normally these is renamed during migration by the sysv-rc init.d
script.
Try this script fragment from sysv-rc.postinst if it isn't possible to
do the migration using dpkg-reconfigure.
convert_rc_s_to_k() {
runlevel=$1
for link in $(cd $target/etc/rc$runlevel.d; ls S* || true); do
set `echo $link|sed "s%S\(..\)\(.*\)%\1 \2%"`
seq=$1
service=$2
mv $target/etc/rc$runlevel.d/$link $target/etc/rc$runlevel.d/K$seq$service
done
}
convert_rc_s_to_k 0
convert_rc_s_to_k 6
When it is done, run insserv again to get the correct shutdown
sequence.
Happy hacking,
--
Petter Reinholdtsen
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]