<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META NAME="Generator" CONTENT="MS Exchange Server version 6.5.7226.0">
<TITLE>/etc/maui.cfg ignored by clients</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/plain format -->
<P><FONT SIZE=2>It appears that /etc/maui.cfg is read and then ignored by clients.<BR>
<BR>
I have maui running on my server, where the config file is /var/local/maui/spool/maui.cfg Maui was installed to /usr/local, and /usr/local is an NFS filesystem, so all nodes have access to the executables. I would like to be able to run the admin commands from any node without specifying the server on the command line.<BR>
<BR>
I created the file /usr/local/etc/maui/maui.cfg for use by the clients, and created /etc/maui.cfg that contains this:<BR>
<BR>
MAUIHOMEDIR /usr/local/etc/maui<BR>
<BR>
When I run a command line diagnose, I get an error:<BR>
<BR>
diagnose -r<BR>
WARNING: cannot open configfile '/var/local/maui/spool/maui.cfg'<BR>
INFO: using internal defaults<BR>
ERROR: cannot connect to '' port 4055<BR>
<BR>
Using strace shows that diagnose reads /etc/maui.cfg, and then ignores it:<BR>
<BR>
<snip><BR>
<BR>
stat64("/etc/maui.cfg", {st_mode=S_IFREG|0644, st_size=32, ...}) = 0<BR>
open("/etc/maui.cfg", O_RDONLY) = 3<BR>
fstat64(3, {st_mode=S_IFREG|0644, st_size=32, ...}) = 0<BR>
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb75f4000<BR>
read(3, "MAUIHOMEDIR /usr/local/etc/maui\n", 4096) = 32<BR>
close(3) = 0<BR>
munmap(0xb75f4000, 4096) = 0<BR>
time([1137014525]) = 1137014525<BR>
stat64("/var/local/maui/spool/.moab.key", 0xbffe8294) = -1 ENOENT (No such file<BR>
or directory)<BR>
stat64("/var/local/maui/spool/maui.cfg", 0xbffe8274) = -1 ENOENT (No such file or directory)<BR>
write(2, "WARNING: cannot open configfile"..., 66WARNING: cannot open configfile '/var/local/maui/spool/maui.cfg'<BR>
) = 66<BR>
write(2, "INFO: using internal default"..., 34INFO: using internal defaults<BR>
) = 34<BR>
<BR>
</snip><BR>
<BR>
<BR>
Prentice<BR>
</FONT>
</P>
</BODY>
</HTML>