changes in xcatmon.pm to work with the relocatable packaging

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@159 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
linggao 2007-12-11 21:40:31 +00:00
parent 18cd99dc86
commit 3b46779bf3

View File

@ -97,7 +97,7 @@ sub supportNodeStatusMon {
#--------------------------------------------------------------------------------
sub startNodeStatusMon {
#print "xcatmon.startNodeStatusMon\n";
my $newentry="*/3 * * * * $::XCATROOT/sbin/xcatnodemon";
my $newentry="*/3 * * * * XCATROOT=$::XCATROOT $::XCATROOT/sbin/xcatnodemon";
my ($code, $msg)=xCAT::Utils::add_cron_job($newentry);
if ($code==0) { return (0, "started"); }
else { return ($code, $msg); }