[Xymon] [PATCH] Fix debian init script problem for Container based virtualization

Joel Brunenberg ml at jjim.de
Mon Apr 4 15:50:04 CEST 2016


Hi,

I just now submitted a debian bug for this because I hope that it gets
fixed in Debian stable, but I also wanted to put this on the list (the
bug does not have an ID yet, I will put it in the thread).
I post this here, because there is an init-script in the xymon-sources
debian/ directory (debian/xymon-client.init).

I discovered then when having a debian host where (in my case) LXC
virtual machines run, it is impossible to start the xymon-client there,
when another xymon-client is already running in one of the containers.

This seems to be, because the invocation of start-stop-daemon does only
check the process name.

The problem can be resolved by adding the --pidfile argument to the
start-stop-daemon invocations so that start-stop-daemon does not only
check the process name but also the PID. During a quick test, the
attached patch was fixing the problem.

Kind Regards,

/jbn

-- 
Joel Brunenberg - Troisdorf
PGP: 0xAD25981C
-------------- next part --------------
A non-text attachment was scrubbed...
Name: xymon-client.init.patch
Type: text/x-diff
Size: 812 bytes
Desc: not available
URL: <http://lists.xymon.com/pipermail/xymon/attachments/20160404/55b8a59e/attachment.patch>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 872 bytes
Desc: not available
URL: <http://lists.xymon.com/pipermail/xymon/attachments/20160404/55b8a59e/attachment.sig>


More information about the Xymon mailing list