Package: systemd
Version: 44-4
Severity: normal

For legacy SysV services, the CanReload flag is set to yes
unconditionally by systemd.
We ship ~1200 SysV init scripts in Debian and a quick&dirty check by
grepping for the "Usage:" help message indicates that ~850 of those scripts
do *not* support reload. I.e. this flag is set incorrectly for approx. 2/3
for them.

Systemd already parses the SysV init script for it's LSB header and
certain Red Hat specific flags, like pidfile. The relevant code is in
src/core/service.c:service_load_sysv_path()

We could extend that and check for the "Usage" message and set the Reload
flag depending on wether we find a "reload" string in the help
message.




-- System Information:
Debian Release: wheezy/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

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

Versions of packages systemd depends on:
ii  dpkg                 1.16.8
ii  initscripts          2.88dsf-31
ii  libacl1              2.2.51-8
ii  libaudit0            1:1.7.18-1.1
ii  libc6                2.13-35
ii  libcap2              1:2.22-1.2
ii  libcryptsetup4       2:1.4.3-2
ii  libdbus-1-3          1.6.2-2
ii  libkmod2             9-2
ii  liblzma5             5.1.1alpha+20120614-1
ii  libpam0g             1.1.3-7.1
ii  libselinux1          2.1.9-5
ii  libsystemd-daemon0   44-4
ii  libsystemd-id128-0   44-4
ii  libsystemd-journal0  44-4
ii  libsystemd-login0    44-4
ii  libudev0             175-7
ii  libwrap0             7.6.q-24
ii  udev                 175-7
ii  util-linux           2.20.1-5.1

Versions of packages systemd recommends:
ii  libpam-systemd  44-4

Versions of packages systemd suggests:
ii  python        2.7.3-2
ii  python-cairo  1.8.8-1+b2
ii  python-dbus   1.1.1-1
pn  systemd-gui   <none>

-- no debconf information


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to