charlesr
08-09-2012, 06:05 AM
Once in a blue moon, my server goes nuts, and when it recovers, mysqld is down. Is there a script I could run every hour in cron that could check it and start it if need be? Just in case I'm not around when it happens.
Something including this I guess: /etc/rc.d/init.d/mysqld status
If it is running I'd expect to see something like mysqld (pid 5409) is running...
Something including this I guess: /etc/rc.d/init.d/mysqld status
If it is running I'd expect to see something like mysqld (pid 5409) is running...