On Thu, Oct 10, 2002 at 04:07:41PM +0000, Voytek Eymont wrote:
> If I want say Apache or MySQL to start on boot, does that place a
> apache-script into a run level 3 hirechary of init.d/rc.d things, is that
> the way things work ?
The scripts are all in /etc/rc.d/init.d. For each run level there's a
corresponding directory, /etc/rc.d/rc{level}.d. In these directories
are symbolic links to the scripts in /etc/rc.d/init.d. If the link
starts with `K', the script is run with the argument `stop' when that
run level is entered. If the link starts with `S', the script is run
with the argument `start' when that run level is entered. They're run
in ascending numerical order.
To start or stop a service in any particular run-level, use `chkconfig',
e.g. `chkconfig http on' starts apache in the current run-level.
`chkconfig --level 2345 httpd off' kills apache in run-levels 2-5.
In each script you'll find a comment like this:
# chkconfig: - 85 15
This is how chkconfig knows what numbers to assign to the links.
> also, if I have Apache and MySQL starting at boot;
> say, something (bad SQL call) burns down MySQLd:
>
> does the script monitors and restarts the MySQL ?
No. The scripts are run once when the run-level is entered.
> or, am I responsible for making sure my desired deamons restart if burnt ?
Yes.
Cheers,
John
--
whois [EMAIL PROTECTED]
GPG key id: 0xD59C360F
http://kirriwa.net/john/
--
SLUG - Sydney Linux User's Group - http://slug.org.au/
More Info: http://lists.slug.org.au/listinfo/slug