Gracefully shutting down daemons

/etc/rc.d/rc.local is a script that gets executed when the machine starts up.

Is there a similar script that gets executed when the machine shuts down or reboots? I want to make sure that MySQL is stopped properly upon system reboots.

 

 

 

 

Top