[Xymon] Possible Bug in xymon-client startup script

Schwitalla, Daniel ddschwit at usgs.gov
Mon Feb 3 18:58:04 CET 2014


Hi all,

Scientific Linux 5.x and 6.x

xymon 4.3.13

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.

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

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.

Fix:

Change the following line in rpm/xymon-client.init from:

su -c "$DAEMON stop" - xymon

to:

su -c "$DAEMON $DMNOPTS stop" - xymon

It needs to be changed in the call to stop and restart the service.

Regards,

-- 
*Dan Schwitalla*
U.S. Geological Survey
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.xymon.com/pipermail/xymon/attachments/20140203/83329a55/attachment.html>


More information about the Xymon mailing list