/[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.8 by sysadm, Sun Jul 4 21:54:39 2004 UTC Revision 1.12 by sysadm, Sat Feb 26 16:10:25 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 139  int controld::Accept(void) Line 139  int controld::Accept(void)
139                                  }                                  }
140                                  else                                  else
141                                  {                                  {
142                                          this->_send(""501 service");                                          this->s_send("501 service");
143                                  }                                  }
144                                  continue;                                  continue;
145                          }                          }
# Line 426  void controld::StartupChild(void) Line 426  void controld::StartupChild(void)
426    
427  void controld::StartupDelay(void)  void controld::StartupDelay(void)
428  {  {
429            syslog << logfile::log_head << "Startup delay for " <<
430                    this->startup_delay << " seconds"<< endl;
431    
432          Sleep(this->startup_delay * 1000);          Sleep(this->startup_delay * 1000);
433  }  }
434    
435  void controld::ShutdownChild(void)  void controld::ShutdownChild(void)
436  {  {
437          if (this->bbsd.end() == 0)          if (this->bbsd.IsRunning())
         {  
                 syslog << logfile::log_head << "End BBSD ... OK" << endl;  
         }  
         else  
438          {          {
439                  syslog << logfile::log_head << "End BBSD ... Failed" << endl;                  if (this->bbsd.end() == 0)
440                    {
441                            syslog << logfile::log_head << "End BBSD ... OK" << endl;
442                    }
443                    else
444                    {
445                            syslog << logfile::log_head << "End BBSD ... Failed" << endl;
446                    }
447          }          }
448    
449          if (this->innd.end() == 0)          if (this->innd.IsRunning())
         {  
                 syslog << logfile::log_head << "End INND ... OK" << endl;  
         }  
         else  
450          {          {
451                  syslog << logfile::log_head << "End INND ... Failed" << endl;                  if (this->innd.end() == 0)
452                    {
453                            syslog << logfile::log_head << "End INND ... OK" << endl;
454                    }
455                    else
456                    {
457                            syslog << logfile::log_head << "End INND ... Failed" << endl;
458                    }
459          }          }
460    
461          if (this->outd.end() == 0)          if (this->outd.IsRunning())
462          {          {
463                  syslog << logfile::log_head << "End OUTD ... OK" << endl;                  if (this->outd.end() == 0)
464          }                  {
465          else                          syslog << logfile::log_head << "End OUTD ... OK" << endl;
466          {                  }
467                  syslog << logfile::log_head << "End OUTD ... Failed" << endl;                  else
468                    {
469                            syslog << logfile::log_head << "End OUTD ... Failed" << endl;
470                    }
471          }          }
472  }  }
473    
# Line 486  int controld::CleanupThreadPool(void) Line 498  int controld::CleanupThreadPool(void)
498    
499          return 0;          return 0;
500  }  }
501    
502    bool controld::check_priv(void)
503    {
504            return this->access.control;
505    }


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

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