Package: xymon-client
Version: 4.3.17-6+deb8u1
Severity: normal
Tags: upstream

Dear Maintainer,

   * What exactly did you do (or not do) that was effective (or
     ineffective)?

When installing xymon-client on a system that serves as a host for running LXC 
containers, it happens, that 
starting the xymon-client on the host becomes impossible when a xymon-client is 
running in one of the containers.

The initscript claims that the xymon-client is already running. This message is 
- inside the script - generated by
the start-stop-daemon invocation. Stopping the daemon might also be affected.

   * What outcome did you expect instead?

The expected bahaviour would be that the client starts normally, despite the 
clients already running inside the
containers.

   * Have you identified a reason for that outcome?

It seems that start-stop-daemon is invoked in a way that makes it only match 
the processes executable name for
detecting if the daemon needs to be started/stopped. That is not enough when 
multiple instances of a process 
might be running on the same system but in multiple process namespaces.

   * How can the problem be fixed?

The problem can be fixed by adding the --pidfile "$PIDFILE" argument to 
start-stop-daemon. It is already in the
commandline, but only as an argument to the xymon-client. A patch is (to be) 
attached.

There is an init script in the upstream sources debian/ directory 
(debian/xymon.init) that also has the problem. 
I am uncertain, if the problem is to be fixed there.

-- System Information:
Debian Release: 8.3
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 3.16.0-4-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages xymon-client depends on:
ii  adduser                3.113+nmu3
ii  debconf [debconf-2.0]  1.5.56
ii  libc6                  2.19-18+deb8u3
ii  libssl1.0.0            1.0.1k-3+deb8u4
ii  lsb-base               4.1+Debian13+nmu1
ii  procps                 2:3.3.9-9

xymon-client recommends no packages.

Versions of packages xymon-client suggests:
ii  hobbit-plugins  20141201

-- debconf information excluded
--- xymon-client        2016-04-04 14:12:55.843102669 +0200
+++ xymon-client.new    2016-04-04 14:23:33.901285002 +0200
@@ -48,7 +48,7 @@
        fi
 
        log_daemon_msg "Starting $DESC" "$NAME"
-       start-stop-daemon --exec $DAEMON --chuid xymon --umask 022 --start \
+       start-stop-daemon --pidfile "$PIDFILE" --exec $DAEMON --chuid xymon --umask 022 --start \
                -- \
                --config=/etc/xymon/clientlaunch.cfg \
                --log=/var/log/xymon/clientlaunch.log \
@@ -57,7 +57,7 @@
        ;;
   stop)
        log_daemon_msg "Stopping $DESC" "$NAME"
-       start-stop-daemon --exec $DAEMON --pidfile $PIDFILE --stop --retry 5
+       start-stop-daemon --pidfile "$PIDFILE" --exec $DAEMON --pidfile $PIDFILE --stop --retry 5
        log_end_msg $?
        ;;
   status)

Reply via email to