Change chkconfig used by Centos 6.3 to print "on" in bright green (like Ubuntu's chkconfig)?
1
vote
2
answers
291
views
chkconfig
on Ubuntu will highlight services that are **on** in green when using list mode.

chkconfig
. Does anyone know how to do that?
### Man entry on Ubuntu describing green highlighting
root@console:~# man chkconfig | grep -C 2 "green"
> LIST MODE
>
> List mode prints for each specified service a line that consists of
> the service name and for runlevels zero to six on or off depending if
> the service will be started or not. on will be printed in bright
> green if the output is written to a terminal. If the --deps option is
> given, the names of the services that must be started before this
> service is appended to each line. The inetd/xinetd services are listed
> in extra sections.
### Centos 6.3 chkconfig package info
[root@centos:/]$ rpm -qa | grep "chkconfig"
chkconfig-1.3.49.3-2.el6.x86_64
### Debian chkconfig package info
root@ubuntu:~# dpkg -s chkconfig
Package: chkconfig
Status: install ok installed
Priority: optional
Section: admin
Installed-Size: 68
Maintainer: Ubuntu Developers
Architecture: all
Version: 11.0-79.1-2
Depends: perl
Recommends: insserv
Asked by brakertech
(1415 rep)
Aug 29, 2013, 02:00 PM
Last activity: Oct 20, 2017, 11:55 AM
Last activity: Oct 20, 2017, 11:55 AM