| 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 */ |
| 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 |
{ |
{ |
| 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 |
{ |
{ |
| 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 |
|
|
| 502 |
|
|
| 503 |
return 0; |
return 0; |
| 504 |
} |
} |
| 505 |
|
|
| 506 |
|
bool controld::check_priv(void) |
| 507 |
|
{ |
| 508 |
|
return this->access.control; |
| 509 |
|
} |