I'm using chef & monit to spin up a group of workers like so:
check process delayed_job
with pidfile /srv/www/blog/shared/pids/delayed_job.pid
start program = "/bin/su - deploy -c 'cd /srv/www/blog/current && RAILS_ENV=production bundle exec script/delayed_job start
stop program = "/bin/su - deploy -c 'cd /srv/www/blog/current && RAILS_ENV=production bundle exec script/delayed_job stop
group delayed_job_blog
And then when I do sudo monit status
I get the following:
Process 'delayed_job'
status running
monitoring status monitored
pid 5758
parent pid 1
uptime 7m
children 0
memory kilobytes 64648
memory kilobytes total 64648
memory percent 6.3%
memory percent total 6.3%
cpu percent 0.0%
cpu percent total 0.0%
data collected Thu Jul 3 22:57:38 2014
However, the group is not listed. Is there anyway way, without stopping and starting the process, to determine if the group has been set correctly?