minor changes for packaging
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@155 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
parent
fe1edbd1e4
commit
b83c08c43e
@ -107,12 +107,12 @@ rm -rf $RPM_BUILD_ROOT
|
||||
|
||||
%post
|
||||
%ifos linux
|
||||
echo "XCATROOT=$XCATROOT
|
||||
echo "XCATROOT=$RPM_INSTALL_PREFIX0
|
||||
PATH=\$PATH:\$XCATROOT/bin:\$XCATROOT/sbin
|
||||
MANPATH=\$MANPATH:\$XCATROOT/share/man
|
||||
export XCATROOT PATH MANPATH" >/etc/profile.d/xcat.sh
|
||||
|
||||
echo "setenv XCATROOT \"$XCATROOT\"
|
||||
echo "setenv XCATROOT \"$RPM_INSTALL_PREFIX0\"
|
||||
setenv PATH \${PATH}:\${XCATROOT}/bin:\${XCATROOT}/sbin
|
||||
setenv MANPATH \${MANPATH}:\${XCATROOT}/share/man" >/etc/profile.d/xcat.csh
|
||||
chmod 755 /etc/profile.d/xcat.*
|
||||
|
@ -97,7 +97,7 @@ sub supportNodeStatusMon {
|
||||
#--------------------------------------------------------------------------------
|
||||
sub startNodeStatusMon {
|
||||
#print "xcatmon.startNodeStatusMon\n";
|
||||
my $newentry="*/3 * * * * $::XCATROOT/sbin/xcatnodemon >> /var/log/xcatmon.log";
|
||||
my $newentry="*/3 * * * * $::XCATROOT/sbin/xcatnodemon";
|
||||
my ($code, $msg)=xCAT::Utils::add_cron_job($newentry);
|
||||
if ($code==0) { return (0, "started"); }
|
||||
else { return ($code, $msg); }
|
||||
|
@ -24,9 +24,9 @@ my %nodes_status_old=xCAT_monitoring::monitorctrl::getNodeStatus();
|
||||
my $tmp_node_active=$nodes_status_old{$::STATUS_ACTIVE};
|
||||
my $tmp_node_inactive=$nodes_status_old{$::STATUS_INACTIVE};
|
||||
my $tmp_node_unknown=$nodes_status_old{unknown};
|
||||
print "active nodes: @$tmp_node_active\n";
|
||||
print "inactive nodes: @$tmp_node_inactive\n";
|
||||
print "unknown nodes: @$tmp_node_unknown\n";
|
||||
#print "active nodes: @$tmp_node_active\n";
|
||||
#print "inactive nodes: @$tmp_node_inactive\n";
|
||||
#print "unknown nodes: @$tmp_node_unknown\n";
|
||||
|
||||
#get current node status
|
||||
my %nodes_status_new1=();
|
||||
|
Loading…
Reference in New Issue
Block a user