/[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.11 by sysadm, Thu Sep 16 15:38:59 2004 UTC
# 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  
         {  
                 syslog << logfile::log_head << "End BBSD ... Failed" << endl;  
         }  
   
         if (this->innd.end() == 0)  
         {  
                 syslog << logfile::log_head << "End INND ... OK" << endl;  
         }  
         else  
438          {          {
439                  syslog << logfile::log_head << "End INND ... Failed" << endl;                  if (this->bbsd.end() == 0)
440          }                  {
441                            syslog << logfile::log_head << "End BBSD ... OK" << endl;
442          if (this->outd.end() == 0)                  }
443          {                  else
444                  syslog << logfile::log_head << "End OUTD ... OK" << endl;                  {
445          }                          syslog << logfile::log_head << "End BBSD ... Failed" << endl;
446          else                  }
447          {          }
448                  syslog << logfile::log_head << "End OUTD ... Failed" << endl;  
449            if (this->innd.IsRunning())
450            {
451                    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.IsRunning())
462            {
463                    if (this->outd.end() == 0)
464                    {
465                            syslog << logfile::log_head << "End OUTD ... OK" << endl;
466                    }
467                    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