/[pdpsoft]/trunk/grid-mw-security/ees/src/app/main.c
ViewVC logotype

Diff of /trunk/grid-mw-security/ees/src/app/main.c

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

revision 1753 by aramv, Fri May 28 14:17:54 2010 UTC revision 1754 by aramv, Thu Jun 10 16:35:55 2010 UTC
# Line 78  EES_RC ees_start(void){ Line 78  EES_RC ees_start(void){
78    
79          /* reuse this part when implementing SIGHUP */          /* reuse this part when implementing SIGHUP */
80          cgul_log(LOG_INFO, "Parsing config file %s\n", config_file_path);          cgul_log(LOG_INFO, "Parsing config file %s\n", config_file_path);
 printf("W00t\n");  
81          if(EEF_init(config_file_path, cgul_log) == EES_FAILURE){          if(EEF_init(config_file_path, cgul_log) == EES_FAILURE){
82      /* at this point, EEF_log can/will be a reference to the second argument passed to EEF_init */      /* at this point, EEF_log can/will be a reference to the second argument passed to EEF_init */
83                  EEF_log(LOG_ERR, "Failed to parse config file (%s), exiting...", config_file_path);                  EEF_log(LOG_ERR, "Failed to parse config file (%s), exiting...", config_file_path);
# Line 114  EES_RC ees_loop(void){ Line 113  EES_RC ees_loop(void){
113  EES_RC ees_stop(void){  EES_RC ees_stop(void){
114    xacml_server_destroy(server);    xacml_server_destroy(server);
115    AOS_Clean();    AOS_Clean();
116    EEF_term();    if(EEF_term() == EES_SUCCESS){
117        EEF_log(LOG_NOTICE, "EEF terminated!\n");
118      } else {
119        EEF_log(LOG_NOTICE, "Error while terminating EEF!\n");
120      }
121    fflush(stdout);    fflush(stdout);
122    fflush(stderr);    fflush(stderr);
123    EEF_log(LOG_NOTICE, "EES Stopped.\n");      EEF_log(LOG_NOTICE, "EES Stopped.\n");  
# Line 189  int main (int argc, char* argv[]){ Line 192  int main (int argc, char* argv[]){
192      EEF_log(LOG_ERR, "Unable to add signal handler for SIGHUP\n");      EEF_log(LOG_ERR, "Unable to add signal handler for SIGHUP\n");
193    }    }
194    
195    #if ENABLE_DEBUG
196        cgul_set_log_options(cgul_get_log_options() | CGUL_STDDEBUG);
197    #endif
198    if(ees_start() == EES_SUCCESS){    if(ees_start() == EES_SUCCESS){
199  #if !ENABLE_DEBUG  #if !ENABLE_DEBUG
200      EEF_daemonize();      EEF_daemonize();
 #else  
     cgul_set_log_options(cgul_get_log_options() | CGUL_STDDEBUG);  
201  #endif  #endif
202    
203      ees_loop();      ees_loop();

Legend:
Removed from v.1753  
changed lines
  Added in v.1754

grid.support@nikhef.nl
ViewVC Help
Powered by ViewVC 1.1.28