/[monit]/monit/files.c
ViewVC logotype

Diff of /monit/files.c

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

revision 1.24 by hauk, Fri Jan 10 10:41:34 2003 UTC revision 1.25 by martinp, Tue Feb 11 20:30:45 2003 UTC
# Line 113  void init_files() { Line 113  void init_files() {
113    
114    }    }
115        
   Run.timestamp= get_timestamp(Run.controlfile, S_IFREG);  
     
116  }  }
117    
118    
# Line 235  int create_pidfile(char *pidfile) { Line 233  int create_pidfile(char *pidfile) {
233        
234  }  }
235    
   
 /**  
  * Test the monit control file for changes.  
  * @return TRUE if the Runtime control file was changed,  
  * otherwise FALSE  
  */  
 int is_rcfile_changed() {  
     
   return(get_timestamp(Run.controlfile, S_IFREG) != Run.timestamp);  
     
 }  
   
236    
237  /**  /**
238   * Secure check the monitrc file. The run control file must have the   * Secure check the monitrc file. The run control file must have the

Legend:
Removed from v.1.24  
changed lines
  Added in v.1.25

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