[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Execute Command by Monit Unsuccessful
From: |
Jay Nicholas |
Subject: |
Execute Command by Monit Unsuccessful |
Date: |
Thu, 25 Sep 2014 13:49:16 -0500 |
Hello, all!
I need some advice and I'm hoping someone can assist.
I have a process that runs on my server that I would like to have monitored by
monit. The only thing that doesn't work is the following lines in the config
file:
check process stream matching "spa.liq"
if does not exist then exec "liquidsoap /home/me/scripts/spa.liq &" as uid
jay and gid jay
It is able to find the "spa.liq" process because I can see it from the monit
web page. However, if I kill the process to test that it starts up it doesn't
work. The log files show that it executes the command but it never runs so it
just keeps trying.
In addition, this process cannot run as root so I added the "as uid jay and gid
jay" so that it runs under my username.
There must be something wrong with this configuration but I can't figure out
what it is.
Thanks,
Jay
- Execute Command by Monit Unsuccessful,
Jay Nicholas <=