Latest LQ Deal: Latest LQ Deals
Go Back > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Debian This forum is for the discussion of Debian Linux.


  Search this Thread
Old 10-16-2010, 08:27 AM   #1
King Arthur
LQ Newbie
Registered: Oct 2010
Posts: 5

Rep: Reputation: 0
Question 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.
Old 10-16-2010, 02:23 PM   #2
Senior Member
Registered: Apr 2005
Location: OZ
Distribution: Debian Sid
Posts: 4,734
Blog Entries: 12

Rep: Reputation: 462Reputation: 462Reputation: 462Reputation: 462Reputation: 462
makefile is the default CONCURRENCY setting.
Old 10-17-2010, 05:48 AM   #3
King Arthur
LQ Newbie
Registered: Oct 2010
Posts: 5

Original Poster
Rep: Reputation: 0
Before I changed anything /etc/default/rcS contained a line "CONCURRENCY=shell". /etc/init.c/rc changes "shell" and "startpar" to "makefile" and mentions that the first two settings are obsolete.

Setting "CONCURRENCY=makefile" directly in /etc/default/rcS leads to the same result as "shell". Only "none" behaves as expected.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Shell variable storing the previously executed command late_nighter Linux - Newbie 2 05-23-2010 01:50 PM
Shell script executed on login kefi Linux - Desktop 13 03-01-2010 10:04 AM
Symlink will not execute Shell Script in /etc/rc2.d netwrkengeer Linux - Software 4 08-03-2008 03:35 PM
script executed inside another script dont make changes potraike Linux - Newbie 4 03-05-2008 05:27 AM
trying to get lilo to autoload in my rcS script Frustin Linux - General 0 04-04-2003 03:46 AM > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 02:05 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration