Date: Sat, 10 Sep 2005 12:12:26 -0400 (Eastern Standard Time) From: Gerard Seibert <gerard-seibert@suscom.net> To: freebsd-questions <freebsd-questions@freebsd.org> Subject: Restarting MySQL from CRON Message-ID: <Pine.WNT.4.63.0509101204160.2920@Treneq.frvorepbz.arg>
next in thread | raw e-mail | index | archive | help
>From time to time, I have found that MySQL has ceased to run. I have a mailing program that requires that MySQL be running in order for it to operate. Since I cannot seem to track down why it occasionally stops functioning, and since the program that depends on it is started via CRON, would it be advisable to put an entry into the CRON that would restart MYSQL prior to the other program running. I was thinking of using this: 0 0 * * * /usr/local/etc/rc.d/mysql-server.sh restart Would that work, or is there a better way? -- Gerard Seibert gerard-seibert@uscom.net
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.WNT.4.63.0509101204160.2920>