scripts in /etc/rc2.d/
Dear All,
I have kept the startup script "dictd.init" for the dictd server in the /etc/init.d/ directory.
I want the dictd server to be started automatically while booting my system. So I created a symbolic link to dict.init script under the /etc/rc2.d/ (I use runlevel 2) So I have
$ ls -l /etc/init.d/dictd.init -rwxr-xr-x 1 root root 747 May 11 12:51 /etc/init.d/dictd.init
$ ls -l /etc/rc2.d/S39dictd lrwxrwxrwx 1 root root 20 May 15 21:02 /etc/rc2.d/S39dictd -> ../init.d/dictd.init
My question is will this work? I have randomly chosen the name "S39dict". I can understand that the prefix "S" is for "Start". What is that number for? How should I chose the number? Is any random number - like the one I have chosen - sufficient? What is the purpose of that number?
$ cat /etc/issue
Red Hat Linux release 7.1 (Seawolf)
Kernel 2.4.16 on an i686
$ uname -a Linux wobble 2.4.16 #8 Tue May 14 14:15:58 IST 2002 i686 unknown
Kindly help me to understand.
Cheers,
anna
Signature · 14 lines
(9) I will not include a self-destruct mechanism unless absolutely
necessary. If it is necessary, it will not be a large red button
labelled "Danger: Do Not Push". The big red button marked "Do Not
Push" will instead trigger a spray of bullets on anyone stupid
enough to disregard it. Similarly, the ON/OFF switch will not
clearly be labelled as such. - Peter Anspach in "The Top 100 Things
I'd Do If I Ever Became An Evil Overlord"
-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqsQuoted 4 lines
$ ls -l /etc/rc2.d/S39dictd lrwxrwxrwx 1 root root 20 May 15 21:02 /etc/rc2.d/S39dictd -> ../init.d/dictd.initMy question is will this work?
Probably.
Quoted 2 lines
I have randomly chosen the name "S39dict". I can understand that the prefix "S" is for "Start". What is that number for?
Sxx services are started in ascending order of xx, so an S39 script can assume that S01, S02, S03, ... S38 scripts have been run, but S40 on will not have been run.
Quoted 2 lines
How should I chose the number? Is any random number - like the one I have chosen - sufficient?
Most numbers should work. Just make sure that syslog (usually S10syslog or S10sysklog) starts first, and that networking is set up (this is usually done before any rc2 scripts are run).
Basically, if it works, leave it.
Steven Smith,
[email protected].