<div dir="ltr">Hi all,<div><br></div><div>Scientific Linux 5.x and 6.x<br><div><br>xymon 4.3.13<br><br></div><div>When you establish a different host name in the file /etc/default/xymon-client than the hostname derived by uname -n, the stop and restart commands do not work.</div>

<div><br></div>
<div>If you set CLIENTHOSTNAME in /etc/default/xymon-client to something other than `uname -n`, when the client starts, it creates a file in the form of clientlaunch."CLIENTHOSTNAME".pid</div><div><br></div><div>

<div>The /etc/init.d/xymon-client (rpm/xymon-client.init) script uses a variable called $DMNOPTS that contains configuration items to form the command line options for xymon.  This script uses $DMNOPTS in the call to "runclient.sh start".  It does not use $DMNOPTS in the call to "runclient.sh stop".  This makes the stop process use `uname -n` to look for the pid file.  It does not exist and the client does not get stopped.<br>
<br></div><div>Fix:<br><br></div><div>Change the following line in rpm/xymon-client.init from:<br><br>su -c "$DAEMON stop" - xymon<br><br></div><div>to:<br><br>su -c "$DAEMON $DMNOPTS stop" - xymon<br>
<br></div><div>It needs to be changed in the call to stop and restart the service.<br></div><div><br></div><div>Regards,<br><br></div>-- <br><b>Dan Schwitalla</b><div>U.S. Geological Survey<br><div><br></div></div>
</div></div></div>