Index: /cyrus-imapd =================================================================== --- /cyrus-imapd (revision 13) +++ /cyrus-imapd (revision 14) @@ -48,5 +48,5 @@ #%# family=contrib - #%# capabilities=autoconf suggest + #%# capabilities=autoconf =head1 VERSION @@ -76,5 +76,5 @@ echo yes else - echo no + echo "no (no cyrus-imapd procdir found)" fi exit 0 @@ -89,5 +89,5 @@ # graphs should look. -if [ "$1" = "config" ]; then +if [ "$1" == "config" ]; then echo 'graph_title Cyrus IMAPd Load' echo 'graph_args --base 1000 -l 0' @@ -109,18 +109,7 @@ fi -# If run with the "config"-parameter, give out information on how the -# graphs should look. - -if [ "$1" = "suggest" ]; then - if [ -d ${PROCDIR} ]; then - echo "yes" - else - echo "no (no cyrus-imapd procdir found)" - exit 0 -fi - cons=$(ls ${PROCDIR} | wc -l) -if [ $cons -lt 0 ]; then +if [ $cons -gt 0 ]; then # Print the number of connections to the imap server echo "connections.value $cons"