Probe needed for Cyrus IMAP

Dale Ghent daleg at umbc.edu
Mon Oct 30 13:51:50 EST 2006


On Oct 30, 2006, at 9:57 AM, Gary Mills wrote:

> The start and stop method scripts for Cyrus IMAP, both for Solaris SMF
> and Sun Cluster, are supposed to exit only when the service is fully
> up or fully down.  The start method in particular needs some way to
> test if the IMAP daemon is accepting and responding to connections.
> Is there some simple way this can be done in a shell script?

You could use an expect script to connect to port 143 and test for  
the banner text.

For shutdowns, you can specify the PID of the parent imapd process to  
pwait. man pwait for how that works.

/dale

--
Dale Ghent
UNIX Systems Specialist
UMBC - Office of Information Technology
ECS 201 - x51705





More information about the Info-cyrus mailing list