After adding mysql.server using: # chkconfig --add mysql.server # chkconfig --level 345 mysql.server on Running: # chkconfig --list | grep mysql fails to list mysql.server. # locate mysql.server /etc/rc.d/init.d/mysql.server /etc/rc.d/rc0.d/K90mysql.server /etc/rc.d/rc1.d/K90mysql.server /etc/rc.d/rc3.d/S90mysql.server /etc/rc.d/rc4.d/S90mysql.server /etc/rc.d/rc5.d/S90mysql.server /etc/rc.d/rc6.d/K90mysql.server /usr/local/share/mysql/mysql.server /usr/src/redhat/SOURCES/mysql-3.22.22/support-files/mysql.server.sh The file /etc/rc.d/init.d/mysql.server contains the required info for chkconfig: # Comments to support chkconfig on RedHat Linux # chkconfig: 2345 90 90 # description: A very fast and reliable SQL database engine.
Where did you obtain the rpm of mysql that you are using?
MySQL was built from an srpm (no longer available for 3.22.23b at www.mysql.org.) $ rpm -qip MySQL-3.22.23b-1.i386.rpm Name : MySQL Relocations: (not relocateable) Version : 3.22.23b Vendor: (none) Release : 1 Build Date: Thu Jun 17 15:08:09 1999Install date: (not installed) Build Host: peach.fruit Group : Applications/Databases Source RPM: MySQL-3.22.23b-1.src.rpmSize : 15845333 License: MySQL FREE PUBLIC LICENSE (See the file PUBLIC) Packager : David Axmark <david> URL : http://www.mysql.com/ Summary : MySQL: a very fast and reliable SQL database engine
Rebuilt MySQL using 3.22.25 srpm. There was a change of /etc/rc.d/init.d/mysql.server to /etc/rc.d/init.d/mysql . chkconfig works fine with the non-dotted name. The problem appears to be that chkconfig couldn't handle somename.anything.
Yep, the init scripts can no longer use the dot notation. That was changed a while back. All new initscripts should be a single word now.