-
1# View Current Status of Startup Services
- The –list option displays all the services with
the current startup configuration status.
- # chkconfig –list (this will list down all services)
- # chkconfig –list | grep network (this will list a service,
in above example which is network service only)
-
2# Add a new Service to the Startup
- Use –add option to add a specific service to the list
of services that will be started during system reboot.
- # chkconfig –add iptables
- # chkconfig –list | grep iptables (to view the new added service)
iptables 0:off 1:off 2:on 3:on 4:on 5:on 6:off
-
3# Remove a Service From Startup List
- To remove it from the startup list, use the –del option
- # chkconfig –del ip6tables
- # chkconfig –list | grep ip6tables (to check removed service)
-
4# Turn-on or Turn-off a Service
- # chkconfig ip6tables off
- # chkconfig –level 35 ip6tables off
(turn off ip6tables for both level 3 and 5)