Bug#826215: SysV init scripts using init-d-script have a hard dependency on sysvinit-utils
Michael Biebl
biebl at debian.org
Fri Jun 3 12:35:06 BST 2016
Package: sysvinit-utils
Version: 2.88dsf-59.4
Severity: important
File: /lib/init/init-d-script
Hi,
the new skeleton file shipped by initscripts (and in dh_make) makes use
of /lib/init/init-d-script.
This is problematic, because that means they get a hard dependency on
sysvinit-utils and we are currently trying to reduce the number of
packages in a minimal base installation.
One possible solution is to switch the skeleton file back to the old
version, which didn't use init-d-script, so new init scripts based on
the skeleton file do no pick up that dependency.
A middle ground would be, to make the skeleton file work more
gracefully, if a native sytemd .service file exists.
If we source /lib/lsb/init-functions *before* /lib/init/init-d-script,
packages which ship a native service file would continue to work even if
/lib/init/init-d-script doesn't exist.
The suggestion would be to remove ". /lib/lsb/init-functions" from
init-d-functions and into /etc/init.d/skeleton like this:
#!/bin/sh
# kFreeBSD do not accept scripts as interpreters, using #!/bin/sh and sourcing.
if [ true != "$INIT_D_SCRIPT_SOURCED" ] ; then
. /lib/lsb/init-functions
set "$0" "$@"; INIT_D_SCRIPT_SOURCED=true . /lib/init/init-d-script
fi
Petter, do you have any preference regarding those two proposals or do
you have another suggestion how we could address this?
Regards,
Michael
-- System Information:
Debian Release: stretch/sid
APT prefers unstable
APT policy: (500, 'unstable'), (200, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 4.5.0-2-amd64 (SMP w/4 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 sysvinit-utils depends on:
ii init-system-helpers 1.34
ii libc6 2.22-10
ii startpar 0.59-3
ii util-linux 2.28-5
sysvinit-utils recommends no packages.
Versions of packages sysvinit-utils suggests:
pn bootlogd <none>
pn sash <none>
-- no debconf information
More information about the Pkg-systemd-maintainers
mailing list