#!/bin/sh # # mysqld This shell script takes care of starting and stopping # the MySQL subsystem (mysqld). # # chkconfig: - 63 37 socketfile="/var/lib/mysql/mysql.sock" if [ -S "$socketfile" ] ; then rm "$socketfile" echo "Old MySQL socket file has been removed." fi