Added xCAT monitoring plug-in infrastructure

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@94 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
linggao 2007-11-29 19:22:49 +00:00
parent e88e7e3880
commit f1dc110c7e

View File

@ -15,6 +15,9 @@ use Getopt::Long;
use Sys::Syslog;
use xCAT::NotifHandler;
require("/usr/lib/xcat/monitoring/monitorctrl.pm");
Getopt::Long::Configure("bundling");
Getopt::Long::Configure("pass_through");
@ -255,6 +258,9 @@ closelog();
#setup signal in NotifHandler so that the cache can be updated
xCAT::NotifHandler::setup($$);
#start the monitoring process
xCAT_monitoring::monitorctrl::start($$);
my $peername;
until ($quit) {
next unless my $connection=$listener->accept;
@ -292,6 +298,8 @@ until ($quit) {
}
$listener->close;
#stop the monitoring process
xCAT_monitoring::monitorctrl::stop($$);
my $parent_fd;
my %resps;