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

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

In my /etc/monit/monitrc I have the following lines:

check process foo_server with pidfile /var/run/
        start program = "/Users/foo/ start"
        stop program = "/Users/foo/ stop"

check directory foo_data path "/Users/foo/Library/Application Support/foo_server/data"
        if timestamp > 1 minute then alert
        #if timestamp > 1 minute then restart foo_server

I know I shouldn't have some of this stuff in my home directory, but this aside: if I uncomment the last line, Monit tells me syntax error on foo_server -- but I am, as far as I understand, correctly defining the process -- how else do I reference it?

share|improve this question

add to /Users/foo/ restart action and change config:

 if timestamp > 1 minute then alert
 if timestamp > 1 minute then
       exec "/Users/foo/ restart"
share|improve this answer

Your Answer


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.