[Pkg-systemd-maintainers] Bug#734848: systemd: LSB initscript wrappers should also handle sockets on start/stop

Apollon Oikonomopoulos apoikos at gmail.com
Fri Jan 10 10:15:34 GMT 2014


Package: systemd
Version: 204-6
Severity: normal

Dear Maintainer,

Currently the wrappers in /lib/lsb/init-functions.d/40-systemd will wrap
starting/stopping any service with a corresponding systemd service unit 
file in a systemctl call. This works well with most services, however if 
a service supports socket activation and ships a socket unit, the socket 
will not be started/stopped during these operations.

In the case of stop, this means that the service is not effectively
stopped, but instead restarted, since it will be re-activated on the next
connection. This is especially important for administrators, who tend to use
/etc/init.d/<service> either directly or through scripts and expect the service
to be permanently stopped after the stop action.

Although there are unit-side workarounds for this (e.g. adding PartOf=
to the socket unit definition), IMHO the desired behavior would be to
detect if the service has a corresponding socket enabled, and start/stop
this as well. For the record, this is also the behavior currently
implemented by service(8) (which also checks that the socket actually
triggers the given service).

Regards,
Apollon

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

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

Versions of packages systemd depends on:
ii  acl                  2.2.52-1
ii  adduser              3.113+nmu3
ii  initscripts          2.88dsf-45
ii  libacl1              2.2.52-1
ii  libaudit1            1:2.3.2-3
ii  libc6                2.17-97
ii  libcap2              1:2.22-1.2
ii  libcryptsetup4       2:1.6.1-1
ii  libdbus-1-3          1.6.18-2
ii  libgcrypt11          1.5.3-3
ii  libkmod2             16-2
ii  liblzma5             5.1.1alpha+20120614-2
ii  libpam0g             1.1.3-9
ii  libselinux1          2.2.1-1
ii  libsystemd-daemon0   204-6
ii  libsystemd-journal0  204-6
ii  libsystemd-login0    204-6
ii  libudev1             204-6
ii  libwrap0             7.6.q-24
ii  udev                 204-6
ii  util-linux           2.20.1-5.5

Versions of packages systemd recommends:
ii  libpam-systemd  204-6

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

-- debconf-show failed




More information about the Pkg-systemd-maintainers mailing list