[Top][All Lists]

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

Monit can't restart Courier IMAP?

From: Mike Jackson
Subject: Monit can't restart Courier IMAP?
Date: Mon, 25 Jul 2005 11:47:17 -0700

I apologize in advance if this is missing critical information; I'll do my best to be thorough.

I'm running Monit 4.5.1 on a FreeBSD 5.4-STABLE box. I'm using Courier-IMAP installed from FreeBSD's ports collection, stopping/starting it with the default /usr/local/etc/rc.d scripts that the port installs. Courier starts successfully when the system loads (in other words, all the correct entries are in /etc/rc.conf), and I can run the rc.d script from the command line to stop/start/restart the service. But when Monit attempt to stop/start it, it cannot. Here's an example from /var/log/messages:

Jul 25 11:27:48 bonsai monit[42687]: 'courier-imap' failed, cannot open a connection to INET[localhost:143]
Jul 25 11:27:48 bonsai monit[42687]: 'courier-imap' trying to restart
Jul 25 11:27:48 bonsai monit[42687]: 'courier-imap' stop: /usr/local/etc/rc.d/
Jul 25 11:29:53 bonsai monit[42687]: 'courier-imap' failed to stop

The rc.d script appears to be a normal FreeBSD rc.subr script, and other similar scripts play nicely with Monit. The file permissions (0755) and ownership (root:wheel) are the same as other rc.d scripts. Any ideas?

reply via email to

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