monit-general
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

How to use pid other than pidfile or procmatch


From: David Montgomery
Subject: How to use pid other than pidfile or procmatch
Date: Fri, 20 Mar 2015 07:17:57 +0800

Hi,

I can get the pid from supervisor as follows:

echo `supervisorctl status git_service_server: | grep RUNNING | awk -F' ' '{print $4}' | sed -e 's/,$//' | paste -sd' '`

I have been having issues with my procmatch.

So given that I dont have a pid file or dont want to use procmatch how do I do something like this?

check process git_service
    with pid "echo `supervisorctl status git_service_server: | grep RUNNING | awk -F' ' '{print $4}' | sed -e 's/,$//' | paste -sd' '`"
    start program = "/usr/local/bin/supervisorctl start git_service_server:"
    stop program = "/usr/local/bin/supervisorctl stop git_service_server:"

Thanks




reply via email to

[Prev in Thread] Current Thread [Next in Thread]