Take the 2-minute tour ×
Ask Different is a question and answer site for power users of Apple hardware and software. It's 100% free, no registration required.

I installed MySQL but I am unable to see if it is running or has stopped. How do I see what are the currently running services corresponding to the "Services" interface in Windows?

share|improve this question

4 Answers 4

up vote 7 down vote accepted

For most of the "services" (called Daemons or Agents) you can check:

In terminal: $ sudo launchctl list

For example only MySQL you can filter the output of the command above, like $ sudo launchctl list | grep -i mysql. Note -i is to make the filter case insensitive.

These can be controlled with a GUI named Lingon.

There are some other "services", that will install themselves in:

/Library/StartupItems

For those, there is a command like ps -ef |grep /Library/StartupItems to view whether it is loaded and running. But there isn't a generic mechanism to stop, start or restart.

In which catergory your MySQL installation falls is impossible to say, as your question is lacking details on what exactly you have installed, what its source is, how it was installed, etc..

share|improve this answer

The application "Activity Monitor" is located in /Applications/Utilities and will display all processes similar to the Unix command 'top'.

share|improve this answer

you can use top in the terminal in osx… I am surprised there is no command line service manager in osx. Wow!

share|improve this answer
2  
Doesn't cat /dev/null show you all windows services that run on OS X? –  bmike Nov 19 '13 at 20:28

No, cat concatenates or displays /dev/null which is the bit bucket or nothing so cat /dev/null shows me nothing.

Try ps -ef on the command line. This will show you process status everything full

To just see MySQL run

ps -ef | grep -i mysql
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.