Re: Probe needed for Cyrus IMAP

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

 



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



----
Cyrus Home Page: http://cyrusimap.web.cmu.edu/
Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html

[Index of Archives]     [Cyrus SASL]     [Squirrel Mail]     [Asterisk PBX]     [Video For Linux]     [Photo]     [Yosemite News]     [gtk]     [KDE]     [Gimp on Windows]     [Steve's Art]

  Powered by Linux