|
From: | Daniel Maher |
Subject: | Re: Run something once |
Date: | Fri, 17 Dec 2010 15:16:38 +0100 |
User-agent: | Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.9pre) Gecko/20100217 Lightning/1.0pre Shredder/3.0.3pre |
On 12/17/2010 01:24 PM, Andrew Holt wrote:
Hi, I have a script that I want to run once, but only if a service it depends upon is running So if service scd is running then execute a script (e.g. /usr/local/bin/tst.sh ) once only, not every 'scan' time. Any ideas ?
I'm not sure what this has to do with Monit - would this not be better served by a cron job (or, if you _really_ mean "once", an at job) with a simple pidof verification or something ?
-- Daniel Maher <dma PLUS monit AT witbe DOT net> "The Internet is completely over." -- Prince
[Prev in Thread] | Current Thread | [Next in Thread] |