From 227a16a1962be9829bf4c1eca907f48af3f00a49 Mon Sep 17 00:00:00 2001 From: datajerk Date: Thu, 14 May 2009 08:24:47 +0000 Subject: [PATCH] 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 --- .../share/xcat/netboot/add-on/autogpfs/autogpfsd.pl | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/xCAT-server/share/xcat/netboot/add-on/autogpfs/autogpfsd.pl b/xCAT-server/share/xcat/netboot/add-on/autogpfs/autogpfsd.pl index f8b631efd..14ca2e3e8 100755 --- a/xCAT-server/share/xcat/netboot/add-on/autogpfs/autogpfsd.pl +++ b/xCAT-server/share/xcat/netboot/add-on/autogpfs/autogpfsd.pl @@ -197,6 +197,9 @@ sub interact { last; } } + while() { + # 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; }