Changeset 4992 in /cluster/svnroot


Ignore:
Timestamp:
Feb 22, 2015 12:37:52 PM (6 years ago)
Author:
skylar
Message:

start dhcp in bccd-nat re #893

File:
1 edited

Legend:

Unmodified
Added
Removed
  • bccd-ng/branches/skylar/bccd-3.4.0/trees/bin/bccd-nat

    r4991 r4992  
    3030my($rc,$out);
    3131
    32 ($rc,$out) = $Bccd->exec_system([
    33     '/usr/sbin/invoke-rc.d',
    34     'isc-dhcp-server',
    35     'status',
    36 ]);
    37 
    38 if($rc == 0) {
    39     $Bccd->log_and_cont('INFO','main','dhcpd is running initially');
    40 }
    41 else {
    42     $Bccd->log_and_cont('WARN','main','dhcpd is not running initially');
    43 }
    44 
    45 sleep 15;
    46 
    4732$rc = $Bccd->config_nat();
    4833if(defined($rc)) {
    4934
    50     ($rc,$out) = $Bccd->exec_system([
    51             '/usr/sbin/invoke-rc.d',
    52             'isc-dhcp-server',
    53             'status',
    54         ]);
    55 
    56     if($rc == 0) {
    57         $Bccd->log_and_cont('INFO','main','dhcpd is running after config_nat');
    58     }
    59     else {
    60         $Bccd->log_and_cont('WARN','main','dhcpd is not running after config_nat');
    61     }
    62     sleep 15;
    6335        ($rc,$out) = $Bccd->exec_system([
    6436            '/usr/sbin/invoke-rc.d',
     
    7648            '/usr/sbin/invoke-rc.d',
    7749            'isc-dhcp-server',
    78             'status',
     50            'start',
    7951        ]);
    8052
    8153    if($rc == 0) {
    82         $Bccd->log_and_cont('INFO','main','dhcpd is running after networking');
     54        $Bccd->log_and_cont('INFO','main','dhcpd started after networking');
    8355    }
    8456    else {
    85         $Bccd->log_and_cont('WARN','main','dhcpd is not running after networking');
     57        $Bccd->log_and_cont('WARN','main','dhcpd cannot start after networking');
    8658    }
    87     sleep 15;
    8859}
    8960else {
Note: See TracChangeset for help on using the changeset viewer.