Description of problem: chkconfig fails to add mysqld to init levels Version-Release number of selected component (if applicable): chkconfig-1.3.44-1.x86_64 How reproducible: enter 'chkconfig --add mysqld --level=35' Steps to Reproduce: 1.enter 'chkconfig --add mysqld --level=35' 2. 3. Actual results: no erros and didn't add to init level Expected results: add to init levels Additional info:[root@server ~]# chkconfig --list mysqld mysqld 0:off 1:off 2:off 3:off 4:off 5:off 6:off [root@server ~]# chkconfig --add mysqld [root@server ~]# chkconfig --list mysqld mysqld 0:off 1:off 2:off 3:off 4:off 5:off 6:off [root@server ~]# chkconfig --add mysqld --level 35 [root@server ~]# chkconfig --list mysqld mysqld 0:off 1:off 2:off 3:off 4:off 5:off 6:off [root@server ~]# chkconfig --add mysqld --level=35 [root@server ~]# chkconfig --list mysqld mysqld 0:off 1:off 2:off 3:off 4:off 5:off 6:off
i added the symlinks by CLI but chkconfig still show off? [root@server ~]# ls -lrt /etc/*/mysqld -rwxr-xr-x 1 root root 4901 2010-04-24 23:27 /etc/init.d/mysqld lrwxrwxrwx 1 root root 18 2010-05-21 12:24 /etc/rc3.d/mysqld -> /etc/init.d/mysqld lrwxrwxrwx 1 root root 18 2010-05-21 12:24 /etc/rc5.d/mysqld -> /etc/init.d/mysqld [root@server ~]# chkconfig --list mysqld mysqld 0:off 1:off 2:off 3:off 4:off 5:off 6:off
--add sets the symlinks up for the default state specified in the init script. It doesn't change the defaults to make the service start or not. See the man page for more details.