Running Services on Red Hat 7.2 Default Server Install

Garet Jax

Diamond Member
Feb 21, 2000
6,369
0
71
Hello all,

I have just installed and configured Red Hat 7.2 at home to be a router and a firewall. I used the default server install. Apart from disabling IPChains and enabling IPTables I haven't changed any of the default services that are installed and started on boot.

I know SSH is running. I know IPTables is running. I don't know anything else... :)

about the services running. How do I get this information and how do I determine what the running service is doing? Is this all available in the MAN pages?

Thanks.
 

bubba

Golden Member
Oct 10, 1999
1,589
0
0

Try the ol' RedHat console standby 'ntsysv' for seeing what services are running.

Either that or look through the /etc/rcX.d for whatever runlevel you are using (3=boot to CLI, 5=boot to X). Any service with an S is started. Also look through /etc/xinetd.d/ and see which of those are turned off (see if disabled=yes in the file).
 

EmperorRob

Senior member
Mar 12, 2001
968
0
0
If you add services they should go into rc.sysinit or rc.local on Red Hat systems. If you can't find any reference in there, query the rpm.

For example you said you had SSH installed.
rpm -qa | grep -i ssh
rpm -ql
(previous result of query)

That will tell you what files are part of that package.
 

TonyRic

Golden Member
Nov 4, 1999
1,972
0
71
Has everyone forgotten the good old `/sbin/chkconfig --list` and `/sbin/chkconfig --list | grep on`? :D

The first one will tell you which services are currently installed and available to use on your system. The second one will tell you which ones are turned on when the system starts and which runlevel they start on.

`man chkconfig` will help you alot in this case. :)