Xymon Mailing List Archive search

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

list Joel Brunenberg
Mon, 4 Apr 2016 15:50:04 +0200
Message-Id: <user-0fe49af03c20@xymon.invalid>

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
Attachments (1)