Details
-
Task
-
Status: Closed (View Workflow)
-
Minor
-
Resolution: Fixed
-
None
Description
As many other services do (in CentOS), it would be handy if /etc/init.d/mysql could source another script, in which some actions can be done (mount disks, error checking...).
I suggest the following:
# Find the name of the script
|
NAME=`basename $0`
|
# import file if present
|
[ -f /etc/sysconfig/${NAME} ] && . /etc/sysconfig/${NAME}
|