monit-general
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: restart program


From: Marcus Mülbüsch
Subject: Re: restart program
Date: Wed, 07 Feb 2007 21:41:11 +0100
User-agent: Thunderbird 1.5.0.9 (Windows/20061207)

> Gentoo also provides "zap" to reset a service to stopped in its cache,
> but that's probably a bit more than monit can be expected to address.

Use:

start program = "/etc/init.d/vixie-cron zap start"
stop program = "/etc/init.d/vixie-cron stop zap"

and even restarts work like a charm.

Some problems remain when a process leaves a pid file, and your restart attempts reach the timeout limit before the pid file is removed. But that seems hardly a monit problem.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]