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

Diff of /innwebd/service.cpp

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

Revision 1.4 by sysadm, Fri Jul 9 00:33:38 2004 UTC Revision 1.5 by sysadm, Tue Aug 10 19:55:57 2004 UTC
# Line 35  void service::Run() Line 35  void service::Run()
35    
36          this->ctrld.InitThreadPool();          this->ctrld.InitThreadPool();
37    
38          if (this->ctrld.begin() == 0)          while (this->m_bIsRunning)
39          {          {
40                  syslog << logfile::log_head << "Begin CONTROLD ... OK" << endl;                  if (this->ctrld.begin() ==0)
   
                 this->ctrld.StartupChild();  
   
                 while (this->m_bIsRunning && this->ctrld.IsRunning())  
41                  {                  {
42                      Sleep(100);                          syslog << logfile::log_head << "Begin CONTROLD ... OK" << endl;
             }  
43    
44                  this->ctrld.ShutdownChild();                          this->ctrld.StartupChild();
45          }                          
46          else                          break;
47          {                  }
48                  syslog << logfile::log_head << "Begin CONTROLD ... Failed" << endl;                  syslog << logfile::log_head << "Begin CONTROLD ... Failed" << endl;
49                    Sleep(1000 * 60);
50          }          }
51    
52            while (this->m_bIsRunning && this->ctrld.IsRunning())
53            {
54                Sleep(100);
55        }
56    
57            this->ctrld.ShutdownChild();
58    
59          if (this->ctrld.end() == 0)          if (this->ctrld.end() == 0)
60          {          {
61                  syslog << logfile::log_head << "End CONTROLD ... OK" << endl;                  syslog << logfile::log_head << "End CONTROLD ... OK" << endl;


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

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