http://ss64.com/bash/chkconfig.html
Для добавлении сервиса в автозагрузку ОС CentOS/RHEL, сущеcтвует служба chkconfig
-
chkconfig —list <имя службы>
-
chkconfig —add <имя службы>
-
chkconfig —del <имя службы>
-
chkconfig [—level levels] <имя службы> <on|off|reset>
-
chkconfig [—level levels] <имя службы>
This implementation of chkconfig was inspired by the chkconfig command present in the IRIX operating system. Rather than maintaining configuration information outside of the /etc/rc[0-6].d hierarchy, however, this version directly manages the symlinks in /etc/rc[0-6].d. This leaves all of the configuration information regarding what services init starts in a single location.
--level levels The run levels an operation should pertain to. Given as a string of numbers from 0 to 7. For example, --level 35 specifies runlevels 3 and 5.