Changeset 14

Show
Ignore:
Timestamp:
07/05/11 00:00:16 (13 years ago)
Author:
ixs
Message:

correct > 0 check, other minor fixes

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • cyrus-imapd

    r13 r14  
    4848 
    4949  #%# family=contrib 
    50   #%# capabilities=autoconf suggest 
     50  #%# capabilities=autoconf 
    5151 
    5252=head1 VERSION 
     
    7676                echo yes 
    7777        else 
    78                 echo no 
     78                echo "no (no cyrus-imapd procdir found)" 
    7979        fi 
    8080        exit 0 
     
    8989# graphs should look.  
    9090  
    91 if [ "$1" = "config" ]; then 
     91if [ "$1" == "config" ]; then 
    9292        echo 'graph_title Cyrus IMAPd Load' 
    9393        echo 'graph_args --base 1000 -l 0' 
     
    109109fi 
    110110 
    111 # If run with the "config"-parameter, give out information on how the 
    112 # graphs should look.  
    113  
    114 if [ "$1" = "suggest" ]; then 
    115         if [ -d ${PROCDIR} ]; then 
    116                 echo "yes" 
    117         else 
    118                 echo "no (no cyrus-imapd procdir found)" 
    119         exit 0 
    120 fi 
    121  
    122111cons=$(ls ${PROCDIR} | wc -l) 
    123112 
    124 if [ $cons -lt 0 ]; then 
     113if [ $cons -gt 0 ]; then 
    125114        # Print the number of connections to the imap server 
    126115        echo "connections.value $cons"