| 139 |
} |
} |
| 140 |
else |
else |
| 141 |
{ |
{ |
| 142 |
this>s_send("501 service"); |
this->s_send("501 service"); |
| 143 |
} |
} |
| 144 |
contiinue; |
continue; |
| 145 |
} |
} |
| 146 |
|
|
| 147 |
if (cmd == "SHUTDOWN") |
if (cmd == "SHUTDOWN") |
| 148 |
{ |
{ |
| 149 |
if (this->access.control) |
if (this->access.control) |
| 150 |
{ |
{ |
| 151 |
this->_send("Shutting down ... ",falsse); |
this->s_send("Shutting down ... ",false); |
| 152 |
|
|
| 153 |
((controld*)(this->GetParentThread()))->ShutdownChild(); |
((controld*)(this->GetParentThread()))->ShutdownChild(); |
| 154 |
|
|
| 431 |
|
|
| 432 |
void controld::ShutdownChild(void) |
void controld::ShutdownChild(void) |
| 433 |
{ |
{ |
| 434 |
if (this->bbsd.end() == 0) |
if (this->bbsd.IsRunning()) |
|
{ |
|
|
syslog << logfile::log_head << "End BBSD ... OK" << endl; |
|
|
} |
|
|
else |
|
| 435 |
{ |
{ |
| 436 |
syslog << logfile::log_head << "End BBSD ... Failed" << endl; |
if (this->bbsd.end() == 0) |
| 437 |
|
{ |
| 438 |
|
syslog << logfile::log_head << "End BBSD ... OK" << endl; |
| 439 |
|
} |
| 440 |
|
else |
| 441 |
|
{ |
| 442 |
|
syslog << logfile::log_head << "End BBSD ... Failed" << endl; |
| 443 |
|
} |
| 444 |
} |
} |
| 445 |
|
|
| 446 |
if (this->innd.end() == 0) |
if (this->innd.IsRunning()) |
| 447 |
{ |
{ |
| 448 |
syslog << logfile::log_head << "End INND ... OK" << endl; |
if (this->innd.end() == 0) |
| 449 |
} |
{ |
| 450 |
else |
syslog << logfile::log_head << "End INND ... OK" << endl; |
| 451 |
{ |
} |
| 452 |
syslog << logfile::log_head << "End INND ... Failed" << endl; |
else |
| 453 |
|
{ |
| 454 |
|
syslog << logfile::log_head << "End INND ... Failed" << endl; |
| 455 |
|
} |
| 456 |
} |
} |
| 457 |
|
|
| 458 |
if (this->outd.end() == 0) |
if (this->outd.IsRunning()) |
|
{ |
|
|
syslog << logfile::log_head << "End OUTD ... OK" << endl; |
|
|
} |
|
|
else |
|
| 459 |
{ |
{ |
| 460 |
syslog << logfile::log_head << "End OUTD ... Failed" << endl; |
if (this->outd.end() == 0) |
| 461 |
|
{ |
| 462 |
|
syslog << logfile::log_head << "End OUTD ... OK" << endl; |
| 463 |
|
} |
| 464 |
|
else |
| 465 |
|
{ |
| 466 |
|
syslog << logfile::log_head << "End OUTD ... Failed" << endl; |
| 467 |
|
} |
| 468 |
} |
} |
| 469 |
} |
} |
| 470 |
|
|