-Have xCATd fire up the new db worker architecture and bring it down
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@3959 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
parent
6b7098dfde
commit
51624f544e
@ -65,6 +65,7 @@ use IO::Select;
|
||||
use XML::Simple;
|
||||
$XML::Simple::PREFERRED_PARSER='XML::Parser';
|
||||
use xCAT::Table;
|
||||
my $dbmaster;
|
||||
use xCAT::ExtTab;
|
||||
use Data::Dumper;
|
||||
use Getopt::Long;
|
||||
@ -467,6 +468,7 @@ unless ($foreground) {
|
||||
daemonize;
|
||||
}
|
||||
|
||||
$dbmaster=xCAT::Table::init_dbworker;
|
||||
my $CHILDPID=0; #Global for reapers
|
||||
sub generic_reaper {
|
||||
while (waitpid(-1,WNOHANG) > 0) {
|
||||
@ -647,6 +649,10 @@ if ($inet6support) {
|
||||
$cnnection->close();
|
||||
}
|
||||
$listener->close;
|
||||
xCAT::Table::shut_dbworker;
|
||||
if ($dbmaster) {
|
||||
kill 2, $dbmaster;
|
||||
}
|
||||
|
||||
#stop the monitoring process
|
||||
xCAT_monitoring::monitorctrl::stop($$);
|
||||
|
Loading…
Reference in New Issue
Block a user