# chkconfig --list
Note: This output shows SysV services only and does not include native
systemd services. SysV configuration data might be overridden by native
systemd configuration.
If you want to list systemd services use 'systemctl list-unit-files'.
To see services enabled on particular target use
'systemctl list-dependencies [target]'.
netconsole 0:off 1:off 2:off 3:off 4:off 5:off 6:off
network 0:off 1:off 2:on 3:on 4:on 5:on 6:off
rhnsd 0:off 1:off 2:on 3:on 4:on 5:on 6:off
//2,3,4,5, all these are on then the service is on at boot
//what are all the services which are enabled in chkconfig option those services which are listed on /etc/init.d/ location
# ls /etc/init.d/
cma functions ma netconsole network README rhnsd sendmail
// from about output , netconsle, network rhnsd all three script file has been in placed,
//those files are look like some scripts it will describe how the service are going to run
//example
# cat /etc/init.d/network
.
.
.
echo $"Configured devices:"
echo lo $interfaces
echo $"Currently active devices:"
echo $(/sbin/ip -o link show up | awk -F ": " '{ print $2 }')
;;
restart|force-reload)
cd "$CWD"
$0 stop
$0 start
rc=$?
;;
*)
echo $"Usage: $0 {start|stop|status|restart|force-reload}"
exit 2
esac
exit $rc
----
//if you want to add new service to start at boot
# chkconfig servicename on
// once done the service will listed on chkconfig --list , you can disable like
# chkconfig servicename off
//these services you can check
# service servicename status
//don't get confuses to know the run level need to check inittab for Redhat 7 there have a command below
0 Comments