Bug#817892: systemd: sysv wrapper breaks LSB exit codes

Michael Braun michael-dev at fami-braun.de
Fri Mar 11 09:51:49 GMT 2016


Package: systemd
Version: 215-17+deb8u3
Severity: important

Dear Maintainer,

   * What led up to the situation?

I upgraded from wheezy where things just worked fine.

I'm running pacemaker with lsb:<some init script> resource - this pacemaker installation has no systemd wrapper available.

Pacemaker expects the init scripts to return LSB conformant exit codes. That is,

 /etc/init.d/<some init script> status

should return non-zero exit if the process is not running.

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

I killed my daemon. Now /etc/init.d/<some init script> status shows "active (exited)" and returns zero, so pacemaker does not detect the daemon is dead.

The daemon removed is PID file and the old init script would return exit code 3.

   * What was the outcome of this action?

As /etc/init.d/<some init script> status still returns zero, pacemaker things the process is still running.

   * What outcome did you expect instead?

An LSB conformant, non-zero exit code - so pacemaker would recover from a dead daemon.

-- Package-specific info:

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

Kernel: Linux 4.2.1-040201-generic (SMP w/8 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8) (ignored: LC_ALL set to de_DE.utf8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages systemd depends on:
ii  acl             2.2.52-2
ii  adduser         3.113+nmu3
ii  initscripts     2.88dsf-59
ii  libacl1         2.2.52-2
ii  libaudit1       1:2.4-1+b1
ii  libblkid1       2.25.2-6
ii  libc6           2.19-18+deb8u3
ii  libcap2         1:2.24-8
ii  libcap2-bin     1:2.24-8
ii  libcryptsetup4  2:1.6.6-5
ii  libgcrypt20     1.6.3-2+deb8u1
ii  libkmod2        18-3
ii  liblzma5        5.1.1alpha+20120614-2+b3
ii  libpam0g        1.1.8-3.1+deb8u1
ii  libselinux1     2.3-2
ii  libsystemd0     215-17+deb8u3
ii  mount           2.25.2-6
ii  sysv-rc         2.88dsf-59
ii  udev            215-17+deb8u3
ii  util-linux      2.25.2-6

Versions of packages systemd recommends:
pn  dbus            <none>
pn  libpam-systemd  <none>

Versions of packages systemd suggests:
pn  systemd-ui  <none>

-- no debconf information



More information about the Pkg-systemd-maintainers mailing list