Auto-start Services on Boot in Linux
CentOS6
Show the list of services that start on boot.
1
chkconfig --list
Add a service to auto-start on boot.
1
2chkconfig --add service_name
chkconfig service_name onConfirm script is added successfully
1
chkconfig --list service_name
Disable an auto-start service.
1
2chkconfig service_name off
chkconfig --del service_name
CentOS7
Add a service to auto-start on boot.
1
systemctl enable service_name
Disable an auto-start service.
1
systemctl disable service_name
Check the status of auto-start service.
1
systemctl status service_name