/[LeafOK_CVS]/innwebd/controld.cpp
ViewVC logotype

Diff of /innwebd/controld.cpp

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

Revision 1.9 by sysadm, Sun Jul 4 22:15:09 2004 UTC Revision 1.13 by sysadm, Fri May 20 14:32:36 2005 UTC
# Line 1  Line 1 
1  /*******************************************************/  /*******************************************************/
2  /*                                                     */  /*                                                     */
3  /*  LeafOK Innbbsd                                     */  /*  LeafOK Innbbsd                                     */
4  /*  Copyright (C) LeafOK.com, 2003-2004                */  /*  Copyright (C) LeafOK.com, 2003-2005                */
5  /*                                                     */  /*                                                     */
6  /*  Programmed by Leaf                                 */  /*  Programmed by Leaf                                 */
7  /*  E-mail:leaflet@leafok.com  QQ:6049044              */  /*  E-mail:leaflet@leafok.com  QQ:6049044              */
# Line 89  int controld::Accept(void) Line 89  int controld::Accept(void)
89                                                  }                                                  }
90    
91                                                  this->s_send(result == 0 ? "OK" : "Failed");                                                  this->s_send(result == 0 ? "OK" : "Failed");
92    
93                                                    syslog << logfile::log_head << "Begin " << cmd << " ... " << (result == 0 ? "OK" : "Failed") << endl;
94                                          }                                          }
95                                          else                                          else
96                                          {                                          {
# Line 131  int controld::Accept(void) Line 133  int controld::Accept(void)
133                                                  }                                                  }
134    
135                                                  this->s_send(result == 0 ? "OK" : "Failed");                                                  this->s_send(result == 0 ? "OK" : "Failed");
136    
137                                                    syslog << logfile::log_head << "End " << cmd << " ... " << (result == 0 ? "OK" : "Failed") << endl;
138                                          }                                          }
139                                          else                                          else
140                                          {                                          {
# Line 426  void controld::StartupChild(void) Line 430  void controld::StartupChild(void)
430    
431  void controld::StartupDelay(void)  void controld::StartupDelay(void)
432  {  {
433            syslog << logfile::log_head << "Startup delay for " <<
434                    this->startup_delay << " seconds"<< endl;
435    
436          Sleep(this->startup_delay * 1000);          Sleep(this->startup_delay * 1000);
437  }  }
438    
439  void controld::ShutdownChild(void)  void controld::ShutdownChild(void)
440  {  {
441          if (this->bbsd.end() == 0)          if (this->bbsd.IsRunning())
442          {          {
443                  syslog << logfile::log_head << "End BBSD ... OK" << endl;                  if (this->bbsd.end() == 0)
444          }                  {
445          else                          syslog << logfile::log_head << "End BBSD ... OK" << endl;
446          {                  }
447                  syslog << logfile::log_head << "End BBSD ... Failed" << endl;                  else
448                    {
449                            syslog << logfile::log_head << "End BBSD ... Failed" << endl;
450                    }
451          }          }
452    
453          if (this->innd.end() == 0)          if (this->innd.IsRunning())
454          {          {
455                  syslog << logfile::log_head << "End INND ... OK" << endl;                  if (this->innd.end() == 0)
456          }                  {
457          else                          syslog << logfile::log_head << "End INND ... OK" << endl;
458          {                  }
459                  syslog << logfile::log_head << "End INND ... Failed" << endl;                  else
460                    {
461                            syslog << logfile::log_head << "End INND ... Failed" << endl;
462                    }
463          }          }
464    
465          if (this->outd.end() == 0)          if (this->outd.IsRunning())
466          {          {
467                  syslog << logfile::log_head << "End OUTD ... OK" << endl;                  if (this->outd.end() == 0)
468          }                  {
469          else                          syslog << logfile::log_head << "End OUTD ... OK" << endl;
470          {                  }
471                  syslog << logfile::log_head << "End OUTD ... Failed" << endl;                  else
472                    {
473                            syslog << logfile::log_head << "End OUTD ... Failed" << endl;
474                    }
475          }          }
476  }  }
477    
# Line 486  int controld::CleanupThreadPool(void) Line 502  int controld::CleanupThreadPool(void)
502    
503          return 0;          return 0;
504  }  }
505    
506    bool controld::check_priv(void)
507    {
508            return this->access.control;
509    }


Legend:
Removed lines/characters  
Changed lines/characters
  Added lines/characters

webmaster@leafok.com
ViewVC Help
Powered by ViewVC 1.3.0-beta1