[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#773087: [systemd-no-service-for-init-script] false positives



Package: lintian
Version: 2.5.30+deb8u3
Severity: important

On package sane-utils I use

- /etc/init.d/saned
- /lib/systemd/system/saned@.service (with Alias=saned)
- /lib/system/system/saned.socket

This way is described in man 5 systemd.socket:
Example: a socket file foo.socket needs a matching service foo.service if
Accept=false is set. If Accept=true is set, a service template file
foo@.service must exist from which services are instantiated for each incoming
connection.

And from https://wiki.debian.org/systemd/Packaging:

When you are installing a systemd service file alongside of your SysV init
script, you should name it correspondingly. E.g. for /etc/init.d/apache2 the
corresponding service file should be named /lib/systemd/system/apache2.service.
This way, systemd will automatically prefer the native service file over the
SysV init script and use that to start the service. If the names do not match,
say your service file is provided by upstream and named NetworkManager.service
and your existing SysV init script is called /etc/init.d/network-manager, you
can either rename one of the two or you simply use an Alias=. This instruction
tells systemctl enable to create a symlink. Augment the service file like this:




-- System Information:
Debian Release: 8.0
  APT prefers testing
  APT policy: (900, 'testing'), (800, 'unstable'), (500, 'testing-updates')
Architecture: amd64 (x86_64)

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

Versions of packages lintian depends on:
ii  binutils                       2.24.90.20141023-1
ii  bzip2                          1.0.6-7+b2
ii  diffstat                       1.58-1
ii  file                           1:5.20-2
ii  gettext                        0.19.3-2
ii  hardening-includes             2.6
ii  intltool-debian                0.35.0+20060710.1
ii  libapt-pkg-perl                0.1.29+b2
ii  libarchive-zip-perl            1.39-1
ii  libclass-accessor-perl         0.34-1
ii  libclone-perl                  0.37-1+b1
ii  libdpkg-perl                   1.17.21
ii  libemail-valid-perl            1.195-1
ii  libfile-basedir-perl           0.03-1
ii  libipc-run-perl                0.92-1
ii  liblist-moreutils-perl         0.33-2+b1
ii  libparse-debianchangelog-perl  1.2.0-1.1
ii  libtext-levenshtein-perl       0.11-1
ii  libtimedate-perl               2.3000-2
ii  liburi-perl                    1.64-1
ii  man-db                         2.7.0.2-4
ii  patchutils                     0.3.3-1
ii  perl [libdigest-sha-perl]      5.20.1-3
ii  t1utils                        1.38-1

Versions of packages lintian recommends:
ii  libperlio-gzip-perl             0.18-3+b1
ii  perl                            5.20.1-3
ii  perl-modules [libautodie-perl]  5.20.1-3

Versions of packages lintian suggests:
pn  binutils-multiarch     <none>
ii  dpkg-dev               1.17.21
ii  libhtml-parser-perl    3.71-1+b3
ii  libtext-template-perl  1.46-1
ii  libyaml-perl           1.13-1
ii  xz-utils               5.1.1alpha+20120614-2+b3

-- no debconf information


Reply to: