Tell me more ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

What is the easist way to find (in Linux Centos6)

1. check if a service is running ? 
i.e if i need to check the openfire is running or not how do i check it ?

2. how do i find-out the PID of a service ?
i.e service openfore pid ?
share|improve this question

closed as not a real question by MDMarra, Michael Hampton, Ward, John Gardeniers, mdpc Nov 26 '12 at 18:13

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, see the FAQ.

2 Answers

Or you can do ps -aux | grep 'service name' to show PIDs and how many instances of that service is running

share|improve this answer

I got it

sudo service httpd status
share|improve this answer
And how did you get the pid of it? – ott-- Nov 26 '12 at 9:32

Not the answer you're looking for? Browse other questions tagged or ask your own question.