From 51624f544e6e1137f84536aea0334818fc4cb607 Mon Sep 17 00:00:00 2001 From: jbjohnso Date: Thu, 6 Aug 2009 12:43:27 +0000 Subject: [PATCH] -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 --- xCAT-server/sbin/xcatd | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/xCAT-server/sbin/xcatd b/xCAT-server/sbin/xcatd index 8cd69ed3a..753f6e191 100755 --- a/xCAT-server/sbin/xcatd +++ b/xCAT-server/sbin/xcatd @@ -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($$);