LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   How to get list of services status in linux (https://www.linuxquestions.org/questions/linux-networking-3/how-to-get-list-of-services-status-in-linux-714873/)

kbarani 03-27-2009 10:40 AM

How to get list of services status in linux
 
Hi all,
How to get the list of services status in the linux machine. if i give #service --status-all in command prompt it's telling the list of services status in that linux machine , but i want implement the same functionality though program , please tell me how to go about this, which file i have to parse , how to parse etc..,

Thanks,
Barani

amani 03-27-2009 11:33 AM

man ps

www.makelinux.net

or

Take a look at the source code of system-config-services in Fedora

kbarani 03-28-2009 12:31 AM

need system-config-services sounce
 
Hi
Please send me the source download link for the system-config-services , i searched in web but i am not able to find the source.

Thanks
Barani

JulianTosh 03-28-2009 01:36 AM

I think this is what you're looking for...

http://git.fedorahosted.org/git/?p=s...;f=src;hb=HEAD

http://git.fedorahosted.org/git/?p=s...gui.py;hb=HEAD


All times are GMT -5. The time now is 07:18 AM.