Saturday, October 12, 2019

chkconfig --list

How to check the service on boot

To check the list of services :-

[root@Akwal ~]# chkconfig --list

To check the specific service:-

 [root@Akwal ~]#  chkconfig --list iptables

or check  any service

 [root@Akwal ~]#  chkconfig --list asterisk

You will see the result like this...
asterisk                  0:off  1:off  2:off  3:off  4:off  5:off  6:off

Enabling or Disabling a Service at boot :

 [root@Akwal ~]#  chkconfig iptables on
or
 [root@Akwal ~]#  chkconfig iptables off

Adding a Service by Using chkconfig

 [root@Akwal ~]# chkconfig --add [servicename]


TO Reset Service Information

 [root@Akwal ~]# chkconfig [servicename] off

TO delete Service Information

[root@Akwal ~]# chkconfig --del [servicename]

TO check the depended services
 [root@Akwal ~]# systemctl list-unit-files



0 comments: