startup daemons question - or: UNIX 101


Subject: startup daemons question - or: UNIX 101
From: Ruprecht, Chris (cruprech@compucom.com)
Date: Fri Jun 15 2001 - 08:34:14 MDT


Case of UNIX 101, I guess.

the scripts in the ...init.d directory do nothing as long as there is no
sym link to them from one of the ...rcX.d directories (X = 1-6).
When Linux (UNIX) boots, it executes the scripts in the appropriate
run-level rc directory. The runlevel is determined by the /etc/inittab
file and usually is either 3 or 5.

so, if your runlevel is 3, you would have to:
cd /etc/rc.d/rc3.d
ln -s ../init.d/myscript S99myscript

Next time you restart the system, the script is executed.

Note: the scripts are executed in alphabetical order. The user scripts
should start with S91 - S99. Don't try to make an entry of A00httpd for
instance, this would try to start the web server before the network is
up. Just stick to the rules and you'll be fine!

There are entries for most system services already, httpd starts as
K15httpd, for example.

Best regards,
Chris

> -----Original Message-----
> From: Jose Luis Paredes [mailto:jose.paredes@yale.edu]
> Sent: Friday, June 15, 2001 8:17 AM
> To: yellowdog-general@lists.yellowdoglinux.com
> Subject: Re: startup daemons question
>
>
> >I would like to have three daemons start on a startup
> >
> >/etc/rc.d/init.d/httpd start
> >/etc/rc.d/init.d/mysqld start
> >/etc/rc.d/init.d/atalk start
> >
> >Any help would be much appreciated. Thanks - Dave Comeau
>
> It seems to me you should be able to run setup from the terminal
> prompt and enable these guys from the system services menu. I would
> be interested to know how to do it without the setup script.
> --
>
> **************************
> Jose Luis Paredes
> Computer Support Specialist II
> ITS Desktop Services
> Yale University
> jose.paredes@yale.edu
> Phone: (203) 432-9503
> Fax: (203) 436-4087
>



This archive was generated by hypermail 2a24 : Fri Jun 15 2001 - 09:21:50 MDT