Browse Source

init-system-helpers Debian release 1.56

-----BEGIN PGP SIGNATURE-----
 
 iQIzBAABCAAdFiEECbOsLssWnJBDRcxUauHfDWCPItwFAlv16p0ACgkQauHfDWCP
 ItyvOQ/+OfbPxtJpqzi2c5GkW2UGneR928yHjZRPDnEAUvcdjXrT0g544OVoK9ZX
 W8L+m66BzrrTXTBaSI1vUOZs8nBUKqrczXVE6J6Rl+OYRNjf7hVVWOPKX953HUUb
 ofPH5dbL8oIEd1X/2wZptM3b8m+A6VMieegx9H8fle7vRwcY4LMrn6rRglCjfirZ
 S6PIhaeI/0yg+SvzAtBGzpECRhaHejLGuMkvhaR92F0CU/C0q42R/u+62yZGi4Q/
 wNLrRZQH9xpc7IsG88EfLI6g1xSpoKJ01yYlQtQLRY2FXIHTfOH+nsqXHCPKOr7S
 DWxCAmOLiJUahlcgFcvbZT2PtbMumlS1sZbxTL9ZYt2hx4vyJjqhW7IWL70wm6j6
 LlsglskhV7gIHb0X0opR2a7PqMcxrGGrgGScIdSsS7gPzdhCnW4IsdV1WT4L/hlJ
 Z2/szFSW/P5D4ts2Tlgz4phi5tXw62lifSJkZgUOwkh4tvTPEvZ4t0lK8jnnZWSn
 mGYUCg+JUeqRqvNMFgXHIN1noWZ7stjnk7XGM/Os5LDEhIy5naynbqaCzhiQWJWx
 6YWCmdWuWj+VEyIUFivv0k4IweOSN1IKpvthHuR9Qn4RUjgznOk2bZFkF5rWwLJW
 uEjkmqLJC9oc8a2H8hw7voSX+dQmY9dRJsRl0Tz0LQ6JYOYkN98=
 =YfEN
 -----END PGP SIGNATURE-----

merged 1.56 into unstable
tags/1.56+devuan1
KatolaZ 3 years ago
parent
commit
c92e08222e
5 changed files with 49 additions and 21 deletions
  1. +22
    -0
      debian/changelog
  2. +1
    -1
      debian/control
  3. +5
    -13
      man8/invoke-rc.d.rst
  4. +4
    -5
      man8/update-rc.d.rst
  5. +17
    -2
      script/update-rc.d

+ 22
- 0
debian/changelog View File

@@ -1,3 +1,25 @@
init-system-helpers (1.56+devuan1) unstable; urgency=medium

* merged upstream into unstable

-- Vincenzo (KatolaZ) Nicosia <katolaz@freaknet.org> Sat, 24 Nov 2018 15:27:18 +0000

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

* update-rc.d: If systemctl is available, use it in make_systemd_links.
To not create an endless loop, we set SYSTEMCTL_SKIP_SYSV=1 which is
respected by systemd-sysv-install since v228. Add a versioned Breaks
against systemd accordingly.
* man: Fix name field of update-rc.d man page
* man: Stop mentioning file-rc in invoke-rc.d man page.
The file-rc package has been removed from the archive.
* man: Stop mentioning bum and sysv-rc-conf in update-rc.d man page
* man: Update bugtracker URLs.
invoke-rc.d and update-rc.d are provided by init-system-helpers
nowadays. Keep a reference to sysv-rc, for the sysvinit related bits.

-- Michael Biebl <biebl@debian.org> Thu, 22 Nov 2018 00:15:24 +0100

init-system-helpers (1.55+devuan1.1) unstable; urgency=medium

* merged 1.55 into unstable


+ 1
- 1
debian/control View File

@@ -23,7 +23,7 @@ Replaces: sysv-rc (<< 2.88dsf-59.3~),
# sysv-rc now pre-depends on us and if we break them we get:
# E: This installation run will require temporarily removing the essential package sysvinit-utils:amd64 due to a Conflicts/Pre-Depends loop. This is often bad, but if you really want to do it, activate the APT::Force-LoopBreak option.
#Breaks: sysv-rc (<< 2.88dsf-59.3~)
Breaks: systemd (<< 44-12),
Breaks: systemd (<< 228),
sysvinit-utils (<< 2.88dsf-59.3~),
Conflicts: file-rc (<< 0.8.17~),
openrc (<= 0.18.3-1),


+ 5
- 13
man8/invoke-rc.d.rst View File

@@ -9,10 +9,10 @@ executes System-V style init script actions
:Manual section: 8
:Manual group: Debian GNU/Linux
:Author:
Henrique Holschuh
Henrique de Moraes Holschuh

:Version: 1 March 2001
:Copyright: 2001 Hernique Holschuh
:Copyright: 2001 Henrique de Moraes Holschuh
:Licence: GNU Public Licence v2 or Later (GPLv2+)

SYNOPSIS
@@ -69,7 +69,6 @@ policies, use the *--force* switch.
OPTIONS
=======


*--help*
Display usage help.

@@ -192,19 +191,14 @@ is installed in the system.
FILES
=====


/etc/init.d/*
System V init scripts.

/usr/sbin/policy-rc.d
Init script policy layer helper (not required).

/etc/runlevel.conf
file-rc runlevel configuration (if the file-rc package is being used).

/etc/rc?.d/*
System V runlevel configuration (if the sysv-rc package is being used).

System V runlevel configuration.

NOTES
=====
@@ -213,13 +207,11 @@ NOTES
action, and returns exit status 4 instead of exit status 0 when
it is denied.


BUGS
====

Please report any bugs using the Debian bug tracking system,
http://bugs.debian.org/, package sysv-rc or file-rc
(depending on which version of invoke-rc.d you are using).
See http://bugs.debian.org/sysv-rc and
http://bugs.debian.org/init-system-helpers.

SEE ALSO
========


+ 4
- 5
man8/update-rc.d.rst View File

@@ -1,5 +1,5 @@
===================
invoke-rc.d
update-rc.d
===================

---------------------------------------------------------
@@ -13,7 +13,7 @@ install and remove System-V style init script links
Miquel van Smoorenburg

:Version: 14 November 2005
:Copyright: 2001 Hernique Holschuh
:Copyright: 2001 Henrique de Moraes Holschuh
:Licence: GNU Public Licence v2 or Later (GPLv2+)


@@ -223,7 +223,8 @@ Example of a command for disabling a system initialization-and-shutdown script:
BUGS
====

See http://bugs.debian.org/sysv-rc.
See http://bugs.debian.org/sysv-rc and
http://bugs.debian.org/init-system-helpers.

FILES
=====
@@ -245,6 +246,4 @@ SEE ALSO
| *Debian Policy Manual*,
| ``/etc/init.d/skeleton``,
| ``insserv``\(8),
| ``sysv-rc-conf``\(8),
| ``bum``\(8),
| ``init``\(8)

+ 17
- 2
script/update-rc.d View File

@@ -129,10 +129,25 @@ sub make_sysv_links {
sub make_systemd_links {
my ($scriptname, $action) = @_;

# If called by systemctl (via systemd-sysv-install), do nothing to avoid
# an endless loop.
if (defined($ENV{_SKIP_SYSTEMD_NATIVE}) && $ENV{_SKIP_SYSTEMD_NATIVE} == 1) {
return;
}

# If systemctl is available, let's use that to create the symlinks.
if (-x "/bin/systemctl") {
# Set this env var to avoid loop in systemd-sysv-install.
local $ENV{SYSTEMCTL_SKIP_SYSV} = 1;
# Use --quiet to mimic the old update-rc.d behaviour.
system("systemctl", "--quiet", "$action", "$scriptname");
return;
}

# In addition to the insserv call we also enable/disable the service
# for systemd by creating the appropriate symlink in case there is a
# native systemd service. We need to do this on our own instead of
# using systemctl because systemd might not even be installed yet.
# native systemd service. In case systemd is not installed we do this
# on our own instead of using systemctl.
my $service_path;
if (-f "/etc/systemd/system/$scriptname.service") {
$service_path = "/etc/systemd/system/$scriptname.service";


Loading…
Cancel
Save