Re: rc.local executing before fstab?
Originally Posted by
TheFu
An understanding of the /etc/rc{N}.d/ directories and /etc/init.d/ will help you greatly.
init.d/ holds all the legacy startup scripts and the rc3.d/ holds softlinks back to those scripts based on the init-level (also called runlevel) and order to start/kill the scripts. Looking in /etc/rc3.d/ I see [SK]{NN}scriptname links. The S or K are for start and stop. The number is the order to be run. "S99rc.local" means that rc.local will be called after every other startup script with lower numbers for that init-level. The stop scripts begin with "K" and are run in reverse order for the runlevel.
Recently, a different process called "upstart" has begun taking over these 25+ yr old scripting methods to solve a few issues. How those integrate in, I don't understand. In some ways, it must be better, but I haven't had a reason to learn upstart. I like the simplicity of the /etc/rcN.d/ scripts. Nothing is hidden, it is easy to understand and it has worked "well-enough" for the huge majority of users all this time.
I might become sold on upstart in the future. Can't say.
The other thing is that you might want to read the man-page on mkdir. There is a -p option you might like.
hi
+++++++++++++++++++++++++++++++1
from a unix user since 1983 (sytem III), even minix ( tannenbaum - 1988 i guess this was the root of linux because unix becomes comercial (torvald linus), linux since (1993).
and i think: the upstart is bul.... . rc's was working fine and sorry - for me more logical.
my opinion was and is still now: assembly is the latin of programing languages, C is like a rasor blade but without a grip and the next time i can't sleep i'll think about a new
language, using yacc and lex to make things more complicated.
ciao
richi
ciao
richi
"What is the robbing of a bank compared to the FOUNDING of a bank?" Berthold Brecht
Bookmarks