How do I know, which services within xinetd are running
Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
How do I know, which services within xinetd are running
Hello,
I am writing a simple shell script to know which daemons are running, on my RH9 Server. I am having problem, if some of the daemons are started within xinetd, there seems to be no way to know if the service is actually running. Parsing of Log files seems to be difficult, as on the same port there could be two applications which could be configured to be ON.. ie lets say wu-ftp and vsftp, which are installed by an user by mistake, and via chkconfig he gets both of them to be ON. However only one starts, How do I know which One... Manually trying to telnet and parsing the output seems to be overkill. Is there some command I do not know, like
service smb status says samba is running
can there be some command which tells me, which services within xinetd are running.
Hi ppuru,
I have already tried to parse output of chkconfig... My problem is evident... from the following steps
1) Installed vsftpd
2) chkconfig --level 345 vsftpd on
3) service xinetd reload
... This is sure to start the vsftpd... (I assume)
Now
By mistake.. a newbie like me
4) Installs wu-ftp
5) chkconfig --level 345 wu-ftp on
6) service xinetd restart
... Now vsftpd is found only to run... assuming that only one of them can run, safely How can I know which one is running... as both
grep disable /etc/xinetd.d/*|grep no and chkconfig --list will be positive...
My special requirement will also fail, if more services like smbd and cups are included in xinetd.d directory.... and for the first time after chkconfig cups on is done, but xinetd is not restarted....
is there a definit way to know only the service actually running, rather than service which are configured to be started at boot...
If you're running xinetd's internal service listing(/etc/xinetd.d/services), you can telnet into it and it'll return the a list of services xinetd is running. By default it only allows connection form localhost.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.