Possibly watchdog to restart certain processes?
Henrique de Moraes Holschuh
hmh at debian.org
Mon Aug 11 12:38:41 EDT 2003
On Mon, 11 Aug 2003, David Hearn wrote:
> So - is there anything I can can do to check if the each individual piece
> of software is working, and if not restart it? Or maybe check that the
If you mean stuff that verify wether a process is running, there are lots of
that, and it ain't difficult to write one of your own either. Search google
and freshmeat...
> overall input/output of email is working and therefore restart all the
> mail-related processes if it doesn't appear to be working.
Well, if you are going to test the mail service itself, then you'll probably
need to write one of your own. My suggestion:
1. Fire up an email to your esmtp server in a cronjob
2. Said email needs to arrive to a test user in cyrus, which has a
sieve script that redirects it to another address
3. Said another address is a postfix/exim/sendmail pipe that calls
a watchdog pat script.
There are other ways. Such as connecting to a mailbox using IMAP
and verifying if the tracer email got there, delete and expunge it, and so
on...
--
"One disk to rule them all, One disk to find them. One disk to bring
them all and in the darkness grind them. In the Land of Redmond
where the shadows lie." -- The Silicon Valley Tarot
Henrique Holschuh
More information about the Info-cyrus
mailing list