--- projects/cms/source/ihost/ihost.c 2004/01/05 16:47:09 1.45 +++ projects/cms/source/ihost/ihost.c 2004/01/07 11:37:10 1.48 @@ -741,7 +741,7 @@ int main(int argc, char **argv){ ihost_state.file_list=NULL; ihost_state.last_modified=NULL; - while((cmdopt=getopt(argc, argv, "vfhVs:i:")) != -1){ + while((cmdopt=getopt(argc, argv, "vfVn:i:s:p:h")) != -1){ switch(cmdopt){ case 'v': ihost_config.verbose++; @@ -827,7 +827,7 @@ int main(int argc, char **argv){ log_msg(LOG_INFO, "Starting ihost..."); log_msg(LOG_DEBUG, "Running statgrab_init()"); - if(!statgrab_init()){ + if(statgrab_init()){ log_msg(LOG_CRIT, "statgrab_init failed (%m)"); exit(1); } @@ -847,7 +847,6 @@ int main(int argc, char **argv){ } } - /* Get the initial config from the filter manager. Should this fail, * wait, and then try again. */ @@ -859,7 +858,6 @@ int main(int argc, char **argv){ sleep(10); } - /*printf("%s\n%d\n", ihost_state.server_fqdn, ihost_state.server_udp_port);*/ while((create_udp_sockinfo(&udp_sockinfo, ihost_state.server_fqdn, ihost_state.server_udp_port))!=0){ log_msg(LOG_ERR, "Failed to create udp socket"); sleep(10);