Bug#768178: systemd: sysvinit wrapper breaks newly-installed services

Ximin Luo infinity0 at pwned.gg
Wed Nov 5 18:05:21 GMT 2014


Package: systemd
Version: 215-5+b1
Severity: important

Hi, systemd is breaking unrelated software and preventing it from starting normally:

(Results below are the same if you call /etc/init.d/fp-facilitator directly, instead of "service fp-facilitator")

$ sudo aptitude install flashproxy-facilitator 
[..]
Setting up flashproxy-facilitator (1.7-1) ...

# configure the settings so things can work
$ sudo sed -i -e 's/RUN_DAEMON="no"/RUN_DAEMON="yes"/g' /etc/default/fp-facilitator 
$ sudo sed -i -e 's/^#\(.*\)websocket\(.*\)/\1websocket\2/g' /etc/flashproxy/facilitator-relays

# now try starting the service
$ sudo service fp-facilitator start
$ sudo service fp-facilitator status
● fp-facilitator.service - LSB: Flash proxy facilitator
[..]
   Active: active (exited) since Wed 2014-11-05 17:56:58 GMT; 34s ago
[..]
Nov 05 17:56:58 pdeb2 fp-facilitator[19028]: Not starting Flash proxy facilitator (Disabled in /etc/default/fp-facilitator)..

$ head -n2 /etc/default/fp-facilitator 
# Change to "yes" to run the service.
RUN_DAEMON="yes"

# Why isn't this working? Things worked perfectly fine with sysvinit.

$ sudo service fp-facilitator stop
$ sudo service fp-facilitator start
$ sudo service fp-facilitator status
● fp-facilitator.service - LSB: Flash proxy facilitator
[..]
   Active: active (running) since Wed 2014-11-05 17:57:46 GMT; 1s ago
[..]

# Now it works? But I didn't change anything!

This is very weird behaviour. I get that "sometimes it's the script's fault", but in /etc/init.d/fp-facilitator I source DEFAULTSFILE almost immediately, so RUN_DAEMON should be checked. Perhaps the systemctl redirector stuff is clobbering these variables?

X

-- Package-specific info:

-- System Information:
Debian Release: jessie/sid
  APT prefers testing
  APT policy: (990, 'testing'), (500, 'unstable'), (500, 'stable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 3.16-3-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_GB.utf8, LC_CTYPE=en_GB.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages systemd depends on:
ii  acl             2.2.52-2
ii  adduser         3.113+nmu3
ii  initscripts     2.88dsf-53.4
ii  libacl1         2.2.52-2
ii  libaudit1       1:2.4-1
ii  libblkid1       2.25.1-5
ii  libc6           2.19-12
ii  libcap2         1:2.24-6
ii  libcap2-bin     1:2.24-6
ii  libcryptsetup4  2:1.6.6-2
ii  libgcrypt20     1.6.2-4
ii  libkmod2        18-3
ii  liblzma5        5.1.1alpha+20120614-2
ii  libpam0g        1.1.8-3.1
ii  libselinux1     2.3-2
ii  libsystemd0     215-5+b1
ii  sysv-rc         2.88dsf-53.4
ii  udev            215-5+b1
ii  util-linux      2.25.1-5

Versions of packages systemd recommends:
ii  dbus            1.8.8-2
ii  libpam-systemd  215-5+b1

Versions of packages systemd suggests:
ii  systemd-ui  3-2

-- no debconf information



More information about the Pkg-systemd-maintainers mailing list