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 <[email protected]> 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


--
To unsubscribe:
https://lists.nongnu.org/mailman/listinfo/monit-general

Reply via email to