[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Auto restart a working process with Monit
From: |
Martin Pala |
Subject: |
Re: Auto restart a working process with Monit |
Date: |
Sun, 26 May 2013 14:40:14 +0200 |
Hi,
you can use the uptime test (available in Monit 5.4 or newer) to restart the
process:
check process myprocess ...
start program = ...
stop program = ...
if uptime > 8 hours then restart
Regards,
Martin
On May 26, 2013, at 2:23 PM, mike <address@hidden> wrote:
> Hi we are already using monit and mmonit with great success and now need to
> restart a process every 8 hours (the process is currently monitored by monit)
>
> I checked the docs and couldnt find anything about auto restarting a
> working/running process, I could always do a cronjob to do monit restart
> <processname> but just figured id check to see if i can add a line to the
> monitrc file to do this.
>
> thanks
>
> mike
>
> --
> To unsubscribe:
> https://lists.nongnu.org/mailman/listinfo/monit-general