Script in rc2.d not executed if CONCURRENCY=shell in rcS
I Installed Debian squeeze (by using debootstrap on my desktop) on a USB stick for use with a Seagate Dockstar (ARM, Kirkwood). Everything works fine (network, apt-get, samba, ...), except one tool ("spindown") I installed to spin down the USB HD ist not started automatically at boot time. I did not fiddle with the init scripts.
Things I already checked:
1) /etc/init.d/spindown exists and is executable (same permissions as all other files in this directory). (installed automatically by "make install").
2) /etc/rc2.d/S20spindown existst and is executable (manual start works)
(also installed automatically by "make install")
3) "/etc/init.d/spindown start" (or "stop") works as expected
4) I added "echo some text >>/var/log/mylog.txt" at the start of the script and verified that it was not executed at all during startup
5) I copied the header of /etc/init.d/skeleton to "spindown" an adapted it a bit
6) CONCURRENCY is set to shell (=default) in /etc/default/rcS. If I change this to "none" everything works (can easily be tested by using telinit)
7) the problem might be related to "startpar" as it is executed (I checked by adding some debug output to "/etc/init.d/rc") but "spindown" is not executed.
8) I did not install "upstart".
My questions are:
1) Is creating a script in /etc/init.d and creating a symlink from /etc/rcX.d no longer enough? Is the boot process icompatible with previous versions?
2) With "CONCURRENCY=shell" (or better "makefile"?): are there other config files to check? "spindown" does not seem to have any dependencies, so I thought this should not be necessary.
3) Where can I find a detailed description of the algorithm "startpar" uses?
Last edited by King Arthur; 10-16-2010 at 08:30 AM.
|