Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

The service utility allows to know the current status for the services installed in the system.

However, when invocking service --status-all some services are listed as [+] (running), some as [-] (stopped) and some as [?] (unknown?). How can I know wether a certain service (from those marked as [?]) is running or not?

Maybe I could say that I don't need to use the service utility, just some mechanism to know which services are effectively running and which not.

share|improve this question

2 Answers 2

sudo service foo status

See man service manpage for the service command

share|improve this answer
    
And why would it be that for some services that does not yield any output? –  D.H.Bahr May 16 '13 at 20:29

If you know the service's name, then a regular-privileged user and of course root can use ps. My personal favorite is to ps -ef | grep <service-name-I-am-searching-for>.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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