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)
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...