Hi,
Depending on your platform, there will be a set of directories somewhere
that contain a number of scripts that are run at various times during
reboot.
On Solaris, the main repository for the scripts is /etc/init.d, and scripts
in /etc/rc1.d are run when entering run level 1, /etc/rc2.d for level 2 etc.
up to rc6.d.
In your support scripts for mysql, there should be one called
"mysql.server". Your should be able to put this in to your version of
/etc/init.d, link it to /etc/rc2.d with a name like S99mysql (the S means
start, the 99 gives the sequence that the scripts in the directory are run).
You may need to edit mysql.server after copying it to suit your mysql set
up.
mysql.server works out what parameters to give to safe_mysqld, and then
calls it, making sure that mysqld is re-started automatically each time the
server is rebooted.
'cron' is slightly different - it contains a list of programs that are run
at regular intervals based on clock time, and isn't able to do anything
particularly special for a re-boot (unless the server is always re-booted at
the same time :-)).
Check your system for "init.d", and go from there.
Hope this helps
Quentin
-----Original Message-----
From: Luke Muszkiewicz [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, 30 January 2001 08:35
To: [EMAIL PROTECTED]
Subject: re-starting safe_mysqld after the server re-starts
Hello All:
I have developed a MySQL/PHP web application that is hosted on a shared
server. I have noticed that when the server is re-started, mysqld is not
automatically re-started.
I have been informed that I need to write a program to be executed by cron
when the server is re-started that runs safe_mysqld.
I would assume that many of you have implemented a like solution to this
problem.
I would appreciate any advice, information, or actual programs that I could
use to solve this problem.
Thank you all in advance!
-luke
Luke Muszkiewicz
Pure Development, LLC
http://puredev.com
3946 Neelon Dr S
Salem, OR 97302
---------------------------------------------------------------------
Before posting, please check:
http://www.mysql.com/manual.php (the manual)
http://lists.mysql.com/ (the list archive)
To request this thread, e-mail <[EMAIL PROTECTED]>
To unsubscribe, e-mail
<[EMAIL PROTECTED]>
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php
The information contained in this email is privileged and confidential
and intended for the addressee only. If you are not the intended
recipient, you are asked to respect that confidentiality and not
disclose, copy or make use of its contents. If received in error
you are asked to destroy this email and contact the sender immediately.
Your assistance is appreciated.
---------------------------------------------------------------------
Before posting, please check:
http://www.mysql.com/manual.php (the manual)
http://lists.mysql.com/ (the list archive)
To request this thread, e-mail <[EMAIL PROTECTED]>
To unsubscribe, e-mail <[EMAIL PROTECTED]>
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php