LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   /proc/diskstats and xinetd services (https://www.linuxquestions.org/questions/linux-newbie-8/proc-diskstats-and-xinetd-services-627768/)

vhcg 03-13-2008 09:50 AM

/proc/diskstats and xinetd services
 
Hi All:

/proc/diskstats (on FC7 and RHEL5)
I've been trying to determine a quick and easy way to see the number of disks in a system. I've looked in /proc/diskstats on several systems and see a pretty consistent pattern.

Ie, on my single drive system, there is an entry for hda. On my dual drive system, there are entries for hda and hdb (hdb is the master device on the 2nd IDE controller). Is this a good way to get this info or is there something better?

xinetd (on FC7 and RHEL5)
I would like to add (for example, telnetd) to xinetd's list of managed services. On my old RH8 server /etc/xinetd.d is full of services like telnet, tftp, etc. These are all present with a default of "disabled = yes". On my FC7 and RHEL5 boxes, the services are not there at all. I could use the files from the RH8 boxes as templates, but something tells me that there is a better way?

Thanks,
VHCG

unSpawn 03-14-2008 06:10 AM

Quote:

Originally Posted by vhcg (Post 3087382)
I've been trying to determine a quick and easy way to see the number of disks in a system. (..) Is this a good way to get this info or is there something better?

Sure it's a good way. I usually use 'fdisk -l' or 'diskstat'.


Quote:

Originally Posted by vhcg (Post 3087382)
I would like to add (for example, telnetd) to xinetd's list of managed services.

Why? You know telnet is insecure. Can't you use SSH?


Quote:

Originally Posted by vhcg (Post 3087382)
On my old RH8 server /etc/xinetd.d is full of services like telnet, tftp, etc. These are all present with a default of "disabled = yes". On my FC7 and RHEL5 boxes, the services are not there at all. I could use the files from the RH8 boxes as templates, but something tells me that there is a better way?

If the service doesn't install it's own /etc/xinetd.d/%{name} then using any template should do. Just check the configuration conforms to your version of Xinetd.


BTW on LQ it's customary to put questions of a different topic in a different thread. While it may not look that way at first it really is more efficient.

vhcg 03-15-2008 01:11 AM

Thank you, unSpawn.

I have no plans to use telnet. It was simply a convenient example for xinetd.

VHCG


All times are GMT -5. The time now is 12:32 PM.