/[monit]/monit/p.y
ViewVC logotype

Diff of /monit/p.y

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.19 by rory, Thu Sep 26 02:56:12 2002 UTC revision 1.20 by chopp, Fri Sep 27 09:52:29 2002 UTC
# Line 163  Line 163 
163    char *string;    char *string;
164  }  }
165    
166  %token SET LOGFILE DAEMON SYSLOG MAILSERVER HTTPD ALLOW ADDRESS INIT  %token SET LOGFILE DAEMON SYSLOG MAILSERVER HTTPD SSLHTTPD ALLOW ADDRESS INIT
167    %token PEMFILE
168  %token CHECK PIDFILE START STOP  %token CHECK PIDFILE START STOP
169  %token HOST PORT TYPE UDP TCP TCPSSL PROTOCOL  %token HOST PORT TYPE UDP TCP TCPSSL PROTOCOL
170  %token ALERT MAILFORMAT UNIXSOCKET  %token ALERT MAILFORMAT UNIXSOCKET
# Line 283  setmailformat   : SET MAILFORMAT '{' for Line 284  setmailformat   : SET MAILFORMAT '{' for
284    
285  sethttpd        : SET HTTPD PORT NUMBER bindaddress allowlist {  sethttpd        : SET HTTPD PORT NUMBER bindaddress allowlist {
286                     Run.dohttpd= TRUE;                     Run.dohttpd= TRUE;
287                       Run.httpdssl= FALSE;
288                       Run.httpdport= $4;
289                     }
290                    ;
291    
292    sethttpd        : SET SSLHTTPD PORT NUMBER bindaddress pemfile allowlist {
293                       if(!have_ssl()) {
294                         error("%s: SSL is not supported at line %d\n",
295                               prog, lineno-1);
296                         cfg_errflag++;
297                       }
298                       Run.dohttpd= TRUE;
299                       Run.httpdssl= TRUE;
300                     Run.httpdport= $4;                     Run.httpdport= $4;
301                   }                   }
302                  ;                  ;
# Line 292  bindaddress     : /* EMPTY */ { Run.bind Line 306  bindaddress     : /* EMPTY */ { Run.bind
306                  | ADDRESS STRING { Run.bind_addr= $2; }                  | ADDRESS STRING { Run.bind_addr= $2; }
307                  ;                  ;
308    
309    pemfile         : PEMFILE PATH { Run.httpsslpem= $2;}
310                    ;
311    
312  allowlist       : /* EMPTY */  allowlist       : /* EMPTY */
313                  | allowlist allow                  | allowlist allow
314                  ;                  ;
# Line 438  depend          : DEPEND dependlist Line 455  depend          : DEPEND dependlist
455    
456  dependlist      : dependant  dependlist      : dependant
457                  | dependlist dependant                  | dependlist dependant
458                    ;
459    
460  dependant       : STRING { adddependant($1); }  dependant       : STRING { adddependant($1); }
461                    ;
462    
463  resource        : CPUUSAGE resourceop REAL {  resource        : CPUUSAGE resourceop REAL {
464                      resourceset.resource_id= RESOURCE_ID_CPU_PERCENT;                      resourceset.resource_id= RESOURCE_ID_CPU_PERCENT;
# Line 739  static void addport(struct PortSet *pp) Line 758  static void addport(struct PortSet *pp)
758    
759    if ( pp->ssl == TRUE ) {    if ( pp->ssl == TRUE ) {
760    
761      p->ssl= new_ssl_connection();      if ( !have_ssl() ) {
762    
763          error("%s: The ssl check cannot be activated at line %d, "
764                "SSL is not support.\n",
765                prog,lineno-1);
766          cfg_errflag++;
767    
768        } else {
769    
770          p->ssl= new_ssl_connection();
771    
772        }
773    
774    } else {    } else {
775    

Legend:
Removed from v.1.19  
changed lines
  Added in v.1.20

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26