Compare commits

...

56 Commits

Author SHA1 Message Date
  Daniel Reurich f1e49be1d0 init-system-helpers release 1.54 for unstable (sid) [dgit] 2 years ago
  Felipe Sateler c022a8b24d Release 3 years ago
  Felipe Sateler 443a0abbab Revert "Drop fallback for old versions of systemd that didn't have is-enabled" 3 years ago
  Felipe Sateler 29d3e7bcb6 Release 3 years ago
  Felipe Sateler 7696f9178a tests: only load Linux::Clone if not testing on real system 3 years ago
  Felipe Sateler 5e68389bdd Release to unstable 3 years ago
  Felipe Sateler 1a6c51f196 Replace usage of dpkg-parsechangelog with pkg-info.mk provided by dpkg-dev 3 years ago
  Felipe Sateler 2fe957bd55 Shorten an old changelog line 3 years ago
  Felipe Sateler ad37dbb599 Fix manpage references in d/copyright 3 years ago
  Felipe Sateler f341db0bde Bump debhelper compat level to 11 3 years ago
  Felipe Sateler f40d484706 deb-systemd-*: Invoke perl intepreter directly in /usr/bin 3 years ago
  Felipe Sateler a6e6fa0a86 Update Standards-Version 3 years ago
  Felipe Sateler 2b3deab200 Merge branch 'dnn-guest/init-system-helpers-user-units' 3 years ago
  Felipe Sateler d45b676376 invoke-rc.d: add option to do nothing for native systemd units 3 years ago
  Daniele Nicolodi afc5713170 tests: Check that the root filesystemd has been marked private 3 years ago
  Daniele Nicolodi 8c75ed77ee tests: Make calling 'deb-systemd-helper' in tests less verbose 3 years ago
  Daniele Nicolodi 871f0eb4cc tests: Add tests for user instance's service handling 3 years ago
  Daniele Nicolodi 1825074381 deb-systemd-helper: Implement user instance's service handling 3 years ago
  Daniele Nicolodi 1458dfe35d autopkgtests: Drop seteup steps that are not required anymore 3 years ago
  Daniele Nicolodi da50c0f171 tests: Make sure that the tests do not clutter the host system 3 years ago
  Daniele Nicolodi dfe2a7f90c tests: Do not require Linux::Clone Perl module if TEST_ON_REAL_SYSTEM is set 3 years ago
  Daniele Nicolodi 3609fd7973 tests: Fix setup when TEST_ON_REAL_SYSTEM is not set 3 years ago
  Daniele Nicolodi d80c7993ba tests: Move common setup code and test functions to a new helpers.pm module 3 years ago
  Daniele Nicolodi 37083fc968 deb-systemd-helper: Add comment explaining why 'systemctl preset' is used 3 years ago
  Michael Biebl bfe21c170c Merge branch 'drop-pre-stretch-fallback' into 'master' 3 years ago
  Felipe Sateler 6f95680ffc Drop fallback for old versions of systemd that didn't have is-enabled 3 years ago
  Felipe Sateler 743d8cfb5f Merge branch 'man' into 'master' 3 years ago
  Daniele Nicolodi 872c922d70 d/rules: Fix man pages header and footer 3 years ago
  Daniele Nicolodi f8296c0b27 deb-systemd-helper: Fix typo in man page 3 years ago
  Felipe Sateler e3ce009788 Change Vcs-* urls to point to the new salsa service 3 years ago
  Felipe Sateler 2bcceff5a6 Release 3 years ago
  Felipe Sateler 7b4318cb22 update-rc.d: fix typo that was disabling all sysv scripts in defaults mode 3 years ago
  Felipe Sateler 5f99a14e62 Convert manpages into reStructuredText 3 years ago
  Felipe Sateler 5d89428ddd Fix errors in pod2man invocations 3 years ago
  Michael Biebl 201b0f8ccb Drop man page translations for update-rc.d 3 years ago
  Michael Biebl aa92015c22 Drop obsolete debian/init-system-helpers.postinst 3 years ago
  Felipe Sateler b413618690 Release 3 years ago
  Felipe Sateler 2db0ad66a9 Briefly document defaults-disabled 3 years ago
  Felipe Sateler 3a0b267121 update-rc.d: Add a defaults-disabled action 4 years ago
  Felipe Sateler 6cb72b59a0 update-rc.d: Refactor actions into a sequence of steps according to the installed init systems 4 years ago
  Felipe Sateler e0d3d2261c update-rc.d: remove -n (dryrun) option, as it did not work 4 years ago
  Felipe Sateler b8bbd3aa6a Add vim modelines for file type 4 years ago
  Felipe Sateler e68f8cf6d4 Remove archive functions, they are nops nowadays 4 years ago
  Felipe Sateler 69d7f4974d Rename insserv_updatercd function to main 4 years ago
  Michael Biebl 6e07e42885 Wrap overlong changelog entries to make lintian happy 3 years ago
  Daniel Reurich c97fd418b5 Update changelog for 1.47+devuan1.0 release 4 years ago
  Daniel Reurich 10b2177203 init-system-helpers Debian release 1.47 4 years ago
  Daniel Reurich fc10a44b54 Update changelog: Release 1.46+devuan1.0 4 years ago
  Daniel Reurich 10ecef78ad re-add newline between source and package stanza 4 years ago
  Daniel Reurich 34a042ddb6 Update Changelog: releasing 1.46 to ascii 4 years ago
  Daniel Reurich 35404c66a1 init-system-helpers Debian release 1.46 4 years ago
  Daniel Reurich d5ced94d9e update changelog release 1.29+devuan+1.0 5 years ago
  Daniel Reurich 10a75cf19b tagging package init-system-helpers version 1.29 5 years ago
  Daniel Reurich d441dfcafc Merge tag 'upstream/1.28' into suites/unstable 5 years ago
  Daniel Reurich ee9b964a87 update/changelog Release +devuan1.0 5 years ago
  Daniel Reurich 48052ccdb7 Snapshot release +devuan1.0 5 years ago
27 changed files with 1572 additions and 1561 deletions
Split View
  1. +181
    -76
      debian/changelog
  2. +1
    -0
      debian/clean
  3. +1
    -1
      debian/compat
  4. +12
    -16
      debian/control
  5. +2
    -2
      debian/copyright
  6. +0
    -14
      debian/init-system-helpers.postinst
  7. +9
    -4
      debian/rules
  8. +0
    -1
      debian/tests/control
  9. +0
    -3
      debian/tests/t
  10. +0
    -206
      man8/es/update-rc.d.8
  11. +0
    -192
      man8/fr.UTF-8/update-rc.d.8
  12. +0
    -230
      man8/invoke-rc.d.8
  13. +231
    -0
      man8/invoke-rc.d.rst
  14. +0
    -193
      man8/ja/update-rc.d.8
  15. +0
    -103
      man8/service.8
  16. +87
    -0
      man8/service.rst
  17. +0
    -215
      man8/update-rc.d.8
  18. +250
    -0
      man8/update-rc.d.rst
  19. +50
    -24
      script/deb-systemd-helper
  20. +1
    -1
      script/deb-systemd-invoke
  21. +27
    -3
      script/invoke-rc.d
  22. +170
    -112
      script/update-rc.d
  23. +38
    -70
      t/001-deb-systemd-helper.t
  24. +9
    -55
      t/002-deb-systemd-helper-update.t
  25. +4
    -40
      t/003-deb-systemd-helper-complex.t
  26. +411
    -0
      t/004-deb-systemd-helper-user.t
  27. +88
    -0
      t/helpers.pm

+ 181
- 76
debian/changelog View File

@@ -1,3 +1,112 @@
init-system-helpers (1.54) unstable; urgency=medium

* Revert "Drop fallback for old versions of systemd that didn't have
is-enabled"
If a package ships both init script and systemd service file, the
systemd unit will not be enabled by the time invoke-rc.d is called
(with current debhelper sequence). This would make systemctl is-enabled
report the wrong status, and then the service would not be started.
Add a comment noting this to avoid removing again in the future.
This reverts commit 6f95680ffc9b1605841eb7d3d8eb92c790e6c73a.
(Closes: #906421, #906051)

-- Felipe Sateler <fsateler@debian.org> Fri, 17 Aug 2018 10:33:08 -0300

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

* tests: only load Linux::Clone if not testing on real system
'use' directive is evaluated at compile time, so having it inside an 'if'
statement does not have the expected effect. Use the 'use if' directive instead.
This fixes running the autopkgtests in clean systems without Linux::Clone module

-- Felipe Sateler <fsateler@debian.org> Wed, 15 Aug 2018 23:52:53 -0300

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

[ Felipe Sateler ]
* Change Vcs-* urls to point to the new salsa service
* Drop fallback for old versions of systemd that didn't have is-enabled.
This reverts commit 0e43de3196a68e59d8a543d1cf7f5b4bfbb27451
* invoke-rc.d: add option to do nothing for native systemd units.
It is useful to simplify maintainer scripts, since it allows executing
this command for sysvinit/openrc
systems, and deb-systemd-invoke for systemd systems
* Update Standards-Version
* deb-systemd-*: Invoke perl interpreter directly in /usr/bin.
Do not go through PATH, and avoid possibly using a user-installed
interpreter
* Bump debhelper compat level to 11
* Fix manpage references in d/copyright.
They were not updated when the manpages were converted to rst
* Replace usage of dpkg-parsechangelog with pkg-info.mk provided by dpkg-dev

[ Daniele Nicolodi ]
* deb-systemd-helper: Fix typo in man page
* d/rules: Fix man pages header and footer.
Pass options to pod2mn to get correct header and footer content.
* deb-systemd-helper: Add comment explaining why 'systemctl preset' is used
* tests: Move common setup code and test functions to a new helpers.pm module
* tests: Fix setup when TEST_ON_REAL_SYSTEM is not set
* tests: Do not require Linux::Clone Perl module if TEST_ON_REAL_SYSTEM is
set.
If the TEST_ON_REAL_SYSTEM environment variable is set, the bind
mounting of empty directories not top of system difrectoried affected
by the tests is skipt. Therefore, there is no need to isolate the
tests in a mount namespace.
* tests: Make sure that the tests do not clutter the host system.
In the mount namespace created for the tests, remount the root
filesystem read-only. To be able to create temporary files and
directories, mount a tmpfs on /tmp.
* autopkgtests: Drop seteup steps that are not required anymore
* deb-systemd-helper: Implement user instance's service handling
* tests: Add tests for user instance's service handling
* tests: Make calling 'deb-systemd-helper' in tests less verbose.
Removing the shell interposition in the system() calls avoids edge
cases in parameters handling (there were places where the randomly
generated unit names were not correctly quoted) and speeds up tests
execution.
* tests: Check that the root filesystemd has been marked private

-- Felipe Sateler <fsateler@debian.org> Sun, 12 Aug 2018 10:19:38 -0300

init-system-helpers (1.51) unstable; urgency=high

[ Michael Biebl ]
* Drop obsolete debian/init-system-helpers.postinst
* Drop man page translations for update-rc.d.
Those are outdated and not installed anyway.

[ Felipe Sateler ]
* Fix errors in pod2man invocations.
Catch errors when building pod manpages, and stop trying to build
documentation for the debhelper tools
* Convert manpages into reStructuredText
* update-rc.d: fix typo that was disabling all sysv scripts in defaults mode
(Closes: #879771).

-- Felipe Sateler <fsateler@debian.org> Wed, 25 Oct 2017 12:38:42 -0300

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

[ Steve Langasek ]
* autopkgtests: Correctly handle unit names that can contain escape sequences.
They need to be quoted so that the shell does not parse them.
(Closes: #873789)

[ Felipe Sateler ]
* Refactor internals of update-rc.d
- Refactor actions into a sequence of steps according to the installed
init systems. This makes plugging new init systems or new actions
easier.
* Add vim modelines for file type
* update-rc.d: remove -n (dryrun) option, as it did not work.
Given that nobody complained, lets just remove it. (Closes: #856415)
* update-rc.d: Add a defaults-disabled action.
It allows installing a service but disabled. (Closes: #857452)
* Briefly document defaults-disabled

-- Felipe Sateler <fsateler@debian.org> Thu, 12 Oct 2017 20:16:13 -0300

init-system-helpers (1.49) unstable; urgency=low

[ Felipe Sateler ]
@@ -13,7 +122,8 @@ init-system-helpers (1.49) unstable; urgency=low
* Bump Standards-Version

[ Iain Lane ]
* invoke-rc.d: Pass --full to `systemctl status', so we don't get ellipsised output.
* invoke-rc.d: Pass --full to `systemctl status', so we don't get ellipsised
output.

[ Michael Biebl ]
* Drop support for upstart
@@ -30,7 +140,7 @@ init-system-helpers (1.48) unstable; urgency=medium

-- Bernd Zeimetz <bzed@debian.org> Tue, 02 May 2017 12:20:21 +0200

init-system-helpers (1.47) unstable; urgency=medium
init-system-helpers (1.47+devuan1.0) unstable; urgency=medium

[ Christian Hofstaedtler ]
* Align policy-rc.d existing/nonexisting case for custom actions.
@@ -63,8 +173,19 @@ init-system-helpers (1.47) unstable; urgency=medium
It is a hard to diagnose condition because trailing spaces are
invisible in most editors. Moreover, all the other parsers (systemd,
insserv) allow such trailing space. (Closes: #851730)
* Release

[ Daniel Reurich ]
* Merge 1.47 from debian

-- Daniel Reurich <centurion@haggai.centurion.net.nz> Fri, 27 Jan 2017 16:04:58 +1300

-- Felipe Sateler <fsateler@debian.org> Wed, 18 Jan 2017 10:17:07 -0300
init-system-helpers (1.46+devuan1.0) unstable; urgency=medium

* re-add newline between source and package stanza
* merge 1.46 from debian

-- Daniel Reurich <centurion@haggai.centurion.net.nz> Fri, 27 Jan 2017 15:44:52 +1300

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

@@ -344,99 +465,83 @@ init-system-helpers (1.30) unstable; urgency=medium

-- Martin Pitt <mpitt@debian.org> Tue, 26 Apr 2016 10:01:46 +0200

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

[ Michael Biebl ]
* Bump debhelper compatibility level to 9.

[ Raphael Geissert ]
* invoke-rc.d: Fix behaviour when no start or stop symlink is found.
Although update-rc.d(8) says that it is a common administration error to
delete a start symlink instead of renaming it to make it a stop symlink,
the default behaviour of invoke-rc.d in that case is not sensible, and
leads to the init script being executed. (Closes: #546532)

[ Martin Pitt ]
* invoke-rc.d: Fix package installation failure when installing a package
with an upstart script and systemd unit, but no SysV script in a chroot.
(LP: #1543051)

[ Felipe Sateler ]
* update-rc.d: Ensure insserv doesn't fail if initscripts is not installed
(Closes: #806438)

[ Benda Xu ]
* script/invoke-rc.d: Add OpenRC support.
* script/update-rc.d: Add OpenRC support.

-- Martin Pitt <mpitt@debian.org> Mon, 29 Feb 2016 13:24:34 +0100
init-system-helpers (1.29+devuan1.0) unstable; urgency=medium

init-system-helpers (1.28) unstable; urgency=medium
[ Andreas Henriksson ]
* Import invoke-rc.d + update-rc.d from sysvinit 2.88dsf-59.2
* Import service from sysvinit 2.88dsf-59.2
* init-system-helpers: Ship invoke-rc.d, update-rc.d and service
* Only pod2man init-system-helpers script for now