All of lore.kernel.org
 help / color / mirror / Atom feed
* scripts in /etc/rc2.d/
@ 2002-05-15 15:40 G Anna
  2002-05-16 12:27 ` Steven Smith
  0 siblings, 1 reply; 2+ messages in thread
From: G Anna @ 2002-05-15 15:40 UTC (permalink / raw)
  To: linux-newbie

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

-- 

(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 majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: scripts in /etc/rc2.d/
  2002-05-15 15:40 scripts in /etc/rc2.d/ G Anna
@ 2002-05-16 12:27 ` Steven Smith
  0 siblings, 0 replies; 2+ messages in thread
From: Steven Smith @ 2002-05-16 12:27 UTC (permalink / raw)
  To: linux-newbie

[-- Attachment #1: Type: text/plain, Size: 847 bytes --]

> $ 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?
Probably.

> 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.

> 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,
sos22@cam.ac.uk.

[-- Attachment #2: Type: application/pgp-signature, Size: 232 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2002-05-16 12:27 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-05-15 15:40 scripts in /etc/rc2.d/ G Anna
2002-05-16 12:27 ` Steven Smith

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.