Proposed MBF: rcS init scripts with no equivalent systemd service file
Felipe Sateler
fsateler at debian.org
Fri Jul 17 18:17:09 BST 2015
Hi all,
I'd like to file bugs (severity: important) on packages that ship an
init script that installs into runlevel S, but do not provide a
systemd service for it. I plan to use the init-rcs-service [usertag]
to record all filed bugs.
=== BEGIN TEMPLATE ===
Hi,
Your package has an initscript that is enabled in runlevel S, but it
does not provide a corresponding systemd service unit.
Systemd generates units for all sysv init scripts that do not have a
corresponding systemd unit. By default, it sets
DefaultDependencies=yes, which means they get ordered after early
boot.
The problem is that to preserve the runlevel S semantics, systemd in
debian is currently[1] ordering all S services Before=sysinit.target.
This target is particularly early in the boot sequence, which means
that it is most of the time too strict. In turn, this means it is
fairly easy to end up with dependency cycles. For an example, see bug
[763315]. Do note that the cycle still exists with sysvinit, it is
just that systemd complains more loudly.
The solution is straightforward: create a systemd unit for the given
service with the appropriate dependencies, which most of the time will
be less strict than Before=sysinit.target. In other cases, the script
is simply not applicable in systemd (eg, if the units are named
differently), in which case the package should ship a symlink to
/dev/null as /lib/systemd/system/<initscript>.service. If you have any
other doubts, feel free to ask in
pkg-systemd-maintainers at lists.alioth.debian.org
[1] http://sources.debian.net/src/systemd/222-2/debian/patches/Add-support-for-rcS.d-init-scripts-to-the-sysv-gener.patch/
[763315] https://bugs.debian.org/763315
=== END TEMPLATE ===
I have used the new lintian systemd-no-service-for-init-rcS-script
[tag] to compile a list of packages that are affected. Some
maintainers are already aware of the problem. If you are working on
this and prefer not to have a bug filed, or there is already one
filed, please let me know. AFAIK setserial is the only one that has a
bug already filed [786976].
[usertag] https://bugs.debian.org/cgi-bin/pkgreport.cgi?users=pkg-systemd-maintainers@lists.alioth.debian.org;dist=unstable;tag=init-rcs-service
[tag] https://lintian.debian.org/tags/systemd-no-service-for-init-rcS-script.html
, but there are some false positives in this list.
[786976] https://bugs.debian.org/786976
dd-list of affected packages:
Ana Beatriz Guerrero Lopez <ana at debian.org>
srptools (U)
Anibal Monsalve Salazar <anibal at debian.org>
nfs-utils (U)
pidentd
rpcbind
Anton Zinoviev <zinoviev at debian.org>
kbd (U)
Asias He <asias at debian.org>
zfs-fuse
Axel Beckert <abe at debian.org>
screen
Bastian Blank <waldi at debian.org>
gfs2-utils (U)
lvm2 (U)
redhat-cluster (U)
Ben Hutchings <ben at decadent.org.uk>
nfs-utils (U)
Benda Xu <heroxbd at gentoo.org>
oss4 (U)
Christian Hofstaedtler <zeha at debian.org>
ipsec-tools (U)
Christian Seiler <christian at iwakd.de>
open-iscsi (U)
Console utilities maintainers <pkg-kbd-devel at lists.alioth.debian.org>
kbd
David Martínez Moreno <ender at debian.org>
aoetools
Debian Accessibility Team <debian-accessibility at lists.debian.org>
espeakup
Debian AppArmor Team <pkg-apparmor-team at lists.alioth.debian.org>
apparmor
Debian FCoE Maintainers <pkg-fcoe-general at lists.alioth.debian.org>
fcoe-utils
Debian HA Maintainers <debian-ha-maintainers at lists.alioth.debian.org>
gfs2-utils
redhat-cluster
Debian iSCSI Maintainers <pkg-iscsi-maintainers at lists.alioth.debian.org>
open-iscsi
Debian kernel team <debian-kernel at lists.debian.org>
nfs-utils
Debian LVM Team <pkg-lvm-maintainers at lists.alioth.debian.org>
lvm2
multipath-tools
Debian mdadm maintainers <pkg-mdadm-devel at lists.alioth.debian.org>
mdadm
Debian OSS4 Maintainers <pkg-oss4-maintainers at lists.alioth.debian.org>
oss4
Debian QA Group <packages at qa.debian.org>
adjtimex
ndisc6
nvi
Debian Virtualbox Team <pkg-virtualbox-devel at lists.alioth.debian.org>
virtualbox
Eric Delaunay <delaunay at debian.org>
scsitools
Frank B. Brokken <f.b.brokken at rug.nl>
natlog
Frederik Schüler <fs at debian.org>
gfs2-utils (U)
ocfs2-tools (U)
redhat-cluster (U)
George Danchev <danchev at spnet.net>
natlog (U)
Gianfranco Costamagna <costamagnagianfranco at yahoo.it>
virtualbox (U)
Guido Günther <agx at sigxcpu.org>
gfs2-utils (U)
multipath-tools (U)
redhat-cluster (U)
Guus Sliepen <guus at debian.org>
ifupdown
wireless-tools
Holger Levsen <holger at debian.org>
apparmor (U)
intrigeri <intrigeri at debian.org>
apparmor (U)
Iustin Pop <iustin at debian.org>
mt-st
Jacob Luna Lundberg <jacob at gnifty.net>
fcoe-utils (U)
Jan Christoph Nordholz <hesso at pool.math.tu-berlin.de>
screen (U)
Jeremy Lainé <jeremy.laine at m4x.org>
ocfs2-tools
Joao Eriberto Mota Filho <eriberto at debian.org>
zvbi
Jochen Friedrich <jochen at scram.de>
ebtables
Kees Cook <kees at debian.org>
apparmor (U)
Liang Guo <bluestonechina at gmail.com>
fcoe-utils (U)
Martin Loschwitz <madkiss at debian.org>
gfs2-utils (U)
redhat-cluster (U)
Matt Grant <matt at mattgrant.net.nz>
ipsec-tools (U)
Michael Meskes <meskes at debian.org>
hdparm (U)
Michael Schutte <michi at debian.org>
kbd (U)
Michael Tokarev <mjt at tls.msk.ru>
mdadm (U)
Noah Meyerhans <noahm at debian.org>
ipsec-tools (U)
OFED and Debian Developement and Discussion
<pkg-ofed-devel at lists.alioth.debian.org>
srptools
Peter De Schrijver (p2) <p2 at mind.be>
linux-atm
pkg-ipsec-tools team <pkg-ipsec-tools-devel at lists.alioth.debian.org>
ipsec-tools
Raphael Geissert <geissert at debian.org>
readahead-fedora
Ritesh Raj Sarraf <rrs at debian.org>
fcoe-utils (U)
multipath-tools (U)
open-iscsi (U)
virtualbox (U)
Romain Beauxis <toots at rastageeks.org>
oss4 (U)
Rémi Denis-Courmont <remi at remlab.net>
ndisc6
Samuel Thibault <sthibault at debian.org>
espeakup (U)
oss4 (U)
Sebastien NOEL <sebastien at twolife.org>
oss4 (U)
Stephan Sürken <absurd at debian.org>
gom
Stephen Gran <sgran at debian.org>
hdparm
Steve Langasek <vorlon at debian.org>
nfs-utils (U)
Thorsten Alteholz <debian at alteholz.de>
setserial
tony mancill <tmancill at debian.org>
natlog (U)
William Dauchy <wdauchy at gmail.com>
ebtables (U)
Wouter Verhelst <wouter at debian.org>
nbd
--
Saludos,
Felipe Sateler
More information about the Pkg-systemd-maintainers
mailing list