[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Run something once
From: |
Andrew Holt |
Subject: |
Re: Run something once |
Date: |
Fri, 17 Dec 2010 14:37:24 +0000 |
Hi,
I though about it a bit more, and I can do it quite simply in other ways
What I was trying to do was to run a script when another service has started.
This script then exits.
It's simple enough to run that script from the service start.
Heh hoh :)
Andrew
On 17 Dec 2010, at 14:16, Daniel Maher wrote:
> 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
>
> --
> To unsubscribe:
> http://lists.nongnu.org/mailman/listinfo/monit-general
>
=============================
Andrew Holt
Email: address@hidden
De Omnibus Dubitandum
=============================