As KP mentioned chkconfig is the utility you want. Red Hat's modifications to irix's chkconfig now include support for services run from xinetd directly. Very useful feature. If you run you'll see "xinetd based services:" at the bottom followed by a list of services with their state (on|off). So for example, if you wanted to quickly turn off (which also disables it from future reboots) finger you would simply issue the command:
Neat huh? However there is one "gotcha" When the configuration is changed, xinetd is signaled automagically to reload the new configuration with the command "/etc/rc.d/init.d/xinetd restart", that is executed by chkconfig. What does that mean? Well, active sessions of services offered through xinetd (ie., Telnet, FTP, etc) are immediaately terminated. So unless you want to modify the xinetd script so that the reload option sends a SIGUSER1 signal (soft reconfiguration), just plan your chkconfig use when the service isn't being used by someone.
chkconfig finger off
So to recap here are some basic usages of chkconfig:
chkconfig --list | grep sendmail Since --list by itself results in everything being displayed you pipe it through grep to narrow it down. You can parse it anyway you want, like
to see all runlevel 3 services or send the whole thing to a file chkconfig --list > services.txt to look at later, etc.
chkconfig --list | grep "3:on"
chkconfig --level 35 sendmail off this would turn off sendmail for runlevels 3 and 5 (run /sbin/runlevel if your not sure which rl your using) and will leave it off.
chkconfig --del sendmail at times removing a service altogether may be in order, sendmail for example, on client machines where incomming mail for local accounts is not required, running sendmail as a daemon may not be necessary. What this command does is remove all sendmail scripts from /etc/rc.d/rc#.d/ (where # is the runlevel) but leaves the main sendmail script located in /etc/rc.d/init.d/ intact, just in case you want to re-establish sendmail as a service for runlevels again.
In short, you have two types of services. Those run from xinetd and those run standalone. chkconfig can handle them both. These are just a few examples to get you going. "man chkconfig" for futher info.