I'm trying to think of a way I can modify /usr/local/etc/rc.d/mysql-server.sh so that when it is called after a system reboot it can see if mySQL was not shut down correctly (by checking the PID file maybe?). If it wasn't, then myisamchk would be automatically run before mySQL is started up.
Anyone have any ideas?