Fix to mmlscluster call to allow cleanup.

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@3378 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
datajerk 2009-05-14 08:24:47 +00:00
parent b4067a9636
commit 227a16a196

View File

@ -197,6 +197,9 @@ sub interact {
last;
}
}
while(<OUTPUT>) {
# let mmlscluster finish up
}
close(OUTPUT);
logger('info',"$node detected as $status");
@ -312,6 +315,8 @@ sub daemonic {
open(STDERR,">&STDOUT");
chdir('/');
umask(0);
#cannot remember why I needed this
#$ENV{PATH} = "$ENV{XCATROOT}/bin:$ENV{XCATROOT}/sbin:$ENV{XCATROOT}/lib:$ENV{PATH}";
return $$;
}
@ -358,6 +363,9 @@ sub logger {
openlog('autogpfsd','','local0');
syslog($type,$msg);
closelog();
#hack for no syslog
#system("(date;echo : $type $msg) >>/tmp/autogpfsd.log");
}
END { unlink PIDFILE if $$ == $pid; }