Commit 581adf35 authored by Sophie Brun's avatar Sophie Brun Committed by Lorenzo Faletra

Import Debian version 1.57+kali1

init-system-helpers (1.57+kali1) kali-dev; urgency=medium

  * Sync with Debian

init-system-helpers (1.57) unstable; urgency=medium

  [ Dmitry Bogatov ]
  * Document that `service` does not check /usr/sbin/policy-rc.d.
    It is an administrator interface, so it is meant to be able to start
    disabled services. (Closes: #656081)
parent d26ad70a
This diff is collapsed.
Source: init-system-helpers
Section: admin
Priority: optional
Maintainer: Debian systemd Maintainers <>
XSBC-Original-Maintainer: Debian systemd Maintainers <>
Maintainer: Kali Developers <>
Uploaders: Michael Biebl <>,
Martin Pitt <>,
Felipe Sateler <>
......@@ -9,8 +10,8 @@ Build-Depends: debhelper (>= 11),
Standards-Version: 4.2.1
Package: init-system-helpers
Architecture: all
......@@ -30,7 +30,7 @@ SBIN = debian/init-system-helpers/usr/sbin
mv $(SBIN)/update-rc.d $(SBIN)/debian-update-rc.d
cp script/parrot-update-rc.d $(SBIN)/update-rc.d
cp script/kali-update-rc.d $(SBIN)/update-rc.d
[ ! -d debian/init-system-helpers ] || sed -i 's/__VERSION__/$(DEB_VERSION)/' debian/init-system-helpers/usr/sbin/service
......@@ -38,7 +38,7 @@ override_dh_gencontrol:
if dpkg-vendor --derives-from ubuntu; then \
dh_gencontrol -- -Valt:sysvinit=""; \
else \
dh_gencontrol -- -Valt:sysvinit="| sysvinit-core | runit-init"; \
dh_gencontrol -- -Valt:sysvinit="| sysvinit-core"; \
......@@ -50,7 +50,8 @@ systemctl/initctl equivalents.
All scripts should support at least the ``start`` and ``stop`` commands.
As a special case, if *COMMAND* is ``--full-restart``, the script is run
twice, first with the ``stop`` command, then with the ``start``
command. Note, that unlike ``update-rc.d``\(8\), ``service`` does not
check ``/usr/sbin/policy-rc.d``.
``service --status-all`` runs all init scripts, in alphabetical order, with
the ``status`` command. The status is [ + ] for running services, [ - ] for
......@@ -33,7 +33,7 @@ if (exists $ENV{'DPKG_RUNNING_VERSION'} and
# We're in a maint-script and we're about to install a new init script
if (exists $status_wanted{$bn}) {
if ($status_wanted{$bn} eq "disabled") {
print STDERR "update-rc.d: $bn is in our deadpool blacklist! YOU SHALL NOT PASS!\n";
print STDERR "update-rc.d: As per Kali policy, $bn init script is left disabled.\n";
system("/usr/sbin/debian-update-rc.d", @orig_argv);
system("/usr/sbin/debian-update-rc.d", $bn, "disable");
exit 0;
......@@ -44,7 +44,7 @@ if (exists $ENV{'DPKG_RUNNING_VERSION'} and
if ($header->{'required-start'} =~ /\$network/ ||
$header->{'should-start'} =~ /\$network/)
print STDERR "update-rc.d: It looks like a network service! YOU SHALL NOT PASS!\n";
print STDERR "update-rc.d: It looks like a network service, we disable it.\n";
system("/usr/sbin/debian-update-rc.d", @orig_argv);
system("/usr/sbin/debian-update-rc.d", $bn, "disable");
exit 0;
......@@ -91,53 +91,29 @@ sub parse_lsb_header {
# Deadpool
# List of blacklisted init scripts
apache2 disabled
avahi-daemon disabled
bluetooth disabled
couchdb disabled
clamav-daemon disabled
clamav-freshclam disabled
cups disabled
dictd disabled
dhcpcd disabled
dradis disabled
exim4 disabled
greenbone-security-assistant disabled
iodined disabled
mariadb disabled
minissdpd disabled
nfs-common disabled
nginx disabled
nmbd disabled
openbsd-inetd disabled
openvas-manager disabled
openvas-scanner disabled
polipo disabled
postfix disabled
postgresql disabled
pppd-dns disabled
procmail disabled
redis disabled
redis-server disabled
redsocks disabled
rpcbind disabled
samba disabled
smbd disabled
saned disabled
snmpd disabled
ssh disabled
stunnel4 disabled
winbind disabled
thin disabled
tinyproxy disabled
tor disabled
udftools disabled
python-faraday disabled
pure-ftpd disabled
# Whitelist
# List of whitelisted init scripts
acpid enabled
acpi-fakekey enabled
......@@ -172,9 +148,6 @@ enabled
kmod enabled
libvirt-bin enabled
libvirt-guests enabled
lightdm enabled
live-config enabled
live-boot enabled
loadcpufreq enabled
lvm2 enabled
lxc enabled
......@@ -189,14 +162,12 @@ enabled enabled
networking enabled
network-manager enabled
nfs-common enabled
pppd-dns enabled
procps enabled
pulseaudio enabled
qemu-kvm enabled
rc.local enabled
rdnssd enabled
resolvconf enabled
restorecond enabled
rmnologin enabled
rsync enabled
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment