Compare commits

...

109 Commits

Author SHA1 Message Date
  Mark Hindley 813f526985 Version 1.60+devuan1. 7 months ago
  Mark Hindley ec4b08503e init-system-helpers Debian release 1.60 7 months ago
  Michael Biebl dbd9197569 Release version 1.60 to unstable 10 months ago
  Michael Biebl 4a0cf6adb9 Remove init-system-helpers.lintian-overrides, no longer needed 10 months ago
  Michael Biebl 15f7d8e0f6 Drop obsolete Breaks/Replaces and Conflicts 10 months ago
  Michael Biebl c527fa9564 Bump Standards-Version to 4.5.1 10 months ago
  Michael Biebl 7fff36697b Switch to debhelper-compat and bump compat level to 13 10 months ago
  Michael Biebl bbc1c7c4fa deb-systemd-*, update-rc.d: Don't hard-code path to systemctl binary 10 months ago
  Michael Biebl 41ad100a76 Release version 1.59 to unstable 11 months ago
  Michael Biebl 3988cf7053 invoke-rc.d,service: Stop using ignore-dependencies 11 months ago
  Michael Biebl f0cac594ab invoke-rc.d: Remove unnecessary systemctl daemon-reload 11 months ago
  Mark Hindley ed1d47199d Changelog for version 1.58+devuan1. 1 year ago
  Mark Hindley 73d13897d8 init-system-helpers Debian release 1.58 1 year ago
  Mark Hindley beb8098c88 d/control: update Vcs-* fields following Gitea migration. 1 year ago
  Michael Biebl 6a1860c6f5 Release version 1.58 to unstable 1 year ago
  Michael Biebl 552e993488 update-rc.d: Consider /usr/lib/systemd/system when searching for unit files 1 year ago
  Michael Biebl f1b835dcb2 man: Fix typo in service(8) man page 1 year ago
  Guilhem Moulin a1ef8e9154 Ensure dh_installsystemduser(1)-added snippets pass piuparts 1 year ago
  Mark Hindley 0afd7748be Changelog for version 1.57+devuan1. 1 year ago
  Mark Hindley b1e32d3bc5 init-system-helpers Debian release 1.57 1 year ago
  Mark Hindley 3db4a37ada Changelog for version 1.56+nmu1+devuan3. 1 year ago
  Mark Hindley c8f291fa5a d/gbp.conf: add default for debian-tag. 1 year ago
  Mark Hindley f7d2ade7c9 Correct devuan-dev list address. 1 year ago
  Mark Hindley d886b35a5f Add myself to uploaders. 1 year ago
  Mark Hindley 7b0d06eb22 Fix merge of nmu1: really add runit-init to init Pre-Depends. 1 year ago
  Mark Hindley 4803fe020f Fix signature indentation. 1 year ago
  Svante Signell b9a3fe6f5d Fix Vcs-* entries. 1 year ago
  Svante Signell 249dcb54ce Clean up gbp.conf, remove lintian-override file, not needed 1 year ago
  Svante Signell 0e83b7948d Upgrading to 1.56+nmu1 and cleanup fixes, see debian/changelog 1 year ago
  Michael Biebl 760c625ec0 Release version 1.57 to unstable 2 years ago
  Dmitry Bogatov 2aeeb3eae2 Document that `service` does not check /usr/sbin/policy-rc.d 2 years ago
  KatolaZ c92e08222e init-system-helpers Debian release 1.56 2 years ago
  Michael Biebl 6646bd36ab Release version 1.56 to unstable 2 years ago
  Michael Biebl 0c3f034426 Revert "Don't mark init as Multi-Arch: foreign" 2 years ago
  Michael Biebl d4243f691e man: Update bugtracker URLs 2 years ago
  Michael Biebl e4e67cd9ca man: Stop mentioning bum and sysv-rc-conf in update-rc.d man page 2 years ago
  Michael Biebl 62b80624fe man: Stop mentioning file-rc in invoke-rc.d man page 2 years ago
  Michael Biebl fdb094c424 man: Fix Henrique's name in the man pages 2 years ago
  KatolaZ 20bf2d17b7 bumped version number 2 years ago
  KatolaZ 10da730d6c added compression-level to gbp.conf 2 years ago
  KatolaZ 7c77b2444d corrected typo in debian/control 2 years ago
  KatolaZ 1014984105 bumped devuan version for unstable 2 years ago
  KatolaZ ffea3d7bd3 init-system-helpers release 1.55 for unstable (sid) [dgit] 2 years ago
  KatolaZ cc70a67d0f merged ascii version into unstable 2 years ago
  Michael Biebl 69b593c352 update-rc.d: if systemctl is available, use it in make_systemd_links 2 years ago
  Michael Biebl e15876c3aa update-rc.d: fix manpage name 2 years ago
  Michael Biebl 1c7e23b18a Don't mark init as Multi-Arch: foreign 3 years ago
  Felipe Sateler c743a7de79 Release 3 years ago
  Felipe Sateler 4fb267398c Bump Standards-Version (no changes needed) 3 years ago
  Felipe Sateler 19c39ceae9 Fix manpage listings in d/copyright for rst manual pages 3 years ago
  Benda Xu f06d143830 s/update-rc.d: let OpenRC run after sysv_{insserv,plain} 3 years ago
  Ondřej Nový a6e60474c5 d/control: Deprecating priority extra as per policy 4.0.1 3 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 4 years ago
  Felipe Sateler 7b4318cb22 update-rc.d: fix typo that was disabling all sysv scripts in defaults mode 4 years ago
  Felipe Sateler 5f99a14e62 Convert manpages into reStructuredText 4 years ago
  Felipe Sateler 5d89428ddd Fix errors in pod2man invocations 4 years ago
  Michael Biebl 201b0f8ccb Drop man page translations for update-rc.d 4 years ago
  Michael Biebl aa92015c22 Drop obsolete debian/init-system-helpers.postinst 4 years ago
  Felipe Sateler b413618690 Release 4 years ago
  Felipe Sateler 2db0ad66a9 Briefly document defaults-disabled 4 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 4 years ago
  parazyd 0b4b27adff
bump changelog for devuan 4 years ago
  parazyd 1a56135dd5 init-system-helpers Debian release 1.48 4 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
31 changed files with 1778 additions and 1603 deletions
Split View
  1. +346
    -74
      debian/changelog
  2. +1
    -0
      debian/clean
  3. +0
    -1
      debian/compat
  4. +17
    -24
      debian/control
  5. +3
    -3
      debian/copyright
  6. +6
    -3
      debian/gbp.conf
  7. +1
    -0
      debian/init-system-helpers.dirs
  8. +0
    -3
      debian/init-system-helpers.lintian-overrides
  9. +0
    -14
      debian/init-system-helpers.postinst
  10. +9
    -4
      debian/rules
  11. +0
    -1
      debian/tests/control
  12. +0
    -3
      debian/tests/t
  13. +0
    -206
      man8/es/update-rc.d.8
  14. +0
    -192
      man8/fr.UTF-8/update-rc.d.8
  15. +0
    -230
      man8/invoke-rc.d.8
  16. +223
    -0
      man8/invoke-rc.d.rst
  17. +0
    -193
      man8/ja/update-rc.d.8
  18. +0
    -103
      man8/service.8
  19. +88
    -0
      man8/service.rst
  20. +0
    -215
      man8/update-rc.d.8
  21. +249
    -0
      man8/update-rc.d.rst
  22. +53
    -26
      script/deb-systemd-helper
  23. +5
    -5
      script/deb-systemd-invoke
  24. +31
    -16
      script/invoke-rc.d
  25. +5
    -8
      script/service
  26. +191
    -114
      script/update-rc.d
  27. +38
    -70
      t/001-deb-systemd-helper.t
  28. +9
    -55
      t/002-deb-systemd-helper-update.t
  29. +4
    -40
      t/003-deb-systemd-helper-complex.t
  30. +411
    -0
      t/004-deb-systemd-helper-user.t
  31. +88
    -0
      t/helpers.pm

+ 346
- 74
debian/changelog View File

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

* Merge debian/1.60.
* Fix missing space in 1.58+devuan1 changelog entry.

-- Mark Hindley <mark@hindley.org.uk> Tue, 02 Mar 2021 10:59:32 +0000

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

* deb-systemd-*, update-rc.d: Don't hard-code path to systemctl binary.
This should simplify an eventual move of systemctl from /bin to /usr/bin.
* Switch to debhelper-compat and bump compat level to 13
* Bump Standards-Version to 4.5.1
* Drop obsolete Breaks/Replaces and Conflicts
* Remove init-system-helpers.lintian-overrides, no longer needed

-- Michael Biebl <biebl@debian.org> Mon, 14 Dec 2020 21:19:00 +0100

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

* invoke-rc.d: Remove unnecessary systemctl daemon-reload.
We have proper support in update-rc.d and debhelper nowadays, which
makes this superfluous.
* invoke-rc.d,service: Stop using ignore-dependencies.
Ignoring dependencies during bootup and shutdown can have undesired
side-effects, like changing the ordering of services and ultimately
causing them to fail. So drop this hack, which was added to work around
issues in hook scripts. We only keep a special case for reload requests,
where we schedule those with "no-block" to avoid unnecessary dead-locks.
(Closes: #960595)

-- Michael Biebl <biebl@debian.org> Thu, 19 Nov 2020 23:35:09 +0100

init-system-helpers (1.58+devuan1) unstable; urgency=medium

* Merge Debian version 1.58.
* d/control: update Vcs-* fields following Gitea migration.

-- Mark Hindley <mark@hindley.org.uk> Mon, 06 Jul 2020 14:03:10 +0100

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

[ Guilhem Moulin ]
* Ensure dh_installsystemduser(1)-added snippets pass piuparts.
Claim ownership of /etc/systemd/user (like /etc/systemd/system)
and make `deb-systemd-helper --user unmask` remove
/var/lib/systemd/deb-systemd-user-helper-masked if empty
(like `deb-systemd-helper unmask` does for
/var/lib/systemd/deb-systemd-helper-masked).
For packages shipping user units installed with dh_installsystemduser(1).
(Closes: #964159)

[ Michael Biebl ]
* man: Fix typo in service(8) man page (Closes: #925995)
* update-rc.d: Consider /usr/lib/systemd/system when searching for unit files

-- Michael Biebl <biebl@debian.org> Sun, 05 Jul 2020 11:50:05 +0200

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

* Merge Debian version 1.57.

-- Mark Hindley <mark@hindley.org.uk> Mon, 25 May 2020 17:27:18 +0100

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)

-- Michael Biebl <biebl@debian.org> Fri, 21 Jun 2019 20:56:55 +0200

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

* Fix nmu1 inclusion of runit-init in init Pre-Depends (Closes: #443).
* Correct Devuan Developers list address as Maintainer.
* Remove references to upstart.
* Add myself to uploaders.
* d/gbp.conf: add debian-tag default.

-- Mark Hindley <mark@hindley.org.uk> Sat, 09 May 2020 16:10:56 +0100

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

* debian/control: Fix Vcs-* entries.

-- Svante Signell <svante.signell@gmail.com> Wed, 29 Jan 2020 17:22:24 +0100

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

* debian/control:
- Add Origin: Devuan
- Change maintainer to Devuan Dev Team <devuan-dev@lists.dyne.org>.
- Add myself to Uploaders.
- Change Priority: to optional, as in upstream.
- Package: init: Make dependency on init-system-helpers versioned,
makes lintian happy.
- Fix start of empty-line with a blank+dot.
* debian/changelog: Delete trailing whitespace.
* debian/init-system-helpers.lintian-overrides: Remove, unused.
* debian/gbp.conf: make [default] section uppercase, remove [dch] section.

-- Svante Signell <svante.signell@gmail.com> Tue, 28 Jan 2020 14:49:24 +0100

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

* Non-maintainer upload.
* Add `runit-init' as alternative pre-dependency (Closes: #838480)

-- Dmitry Bogatov <KAction@debian.org> Mon, 03 Dec 2018 23:10:03 +0000

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

-- Vincenzo (KatolaZ) Nicosia <katolaz@freaknet.org> Tue, 20 Nov 2018 16:08:43 +0000

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

[ Ondřej Nový ]
* d/control: Deprecating priority extra as per policy 4.0.1

[ Benda Xu ]
* s/update-rc.d: let OpenRC run after sysv_{insserv,plain}
Refactorization in 6cb72b59a0a1898939b818d8d2 made rc-update from
OpenRC run *before* sysv_{insserv,plain}. OpenRC needs to
sychronize with /etc/rc?.d links to maintain consistency and
administrator configurations, therefore it has to be executed after
them. (Closes: #910444)

[ Felipe Sateler ]
* Fix manpage listings in d/copyright for rst manual pages.
The names were not changed correctly when the manpages were rewritten in
rst.
* Bump Standards-Version (no changes needed)

-- Felipe Sateler <fsateler@debian.org> Wed, 24 Oct 2018 08:31:28 -0300

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,13 +283,20 @@ 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

-- Felipe Sateler <fsateler@debian.org> Mon, 17 Jul 2017 12:27:32 -0400

init-system-helpers (1.48+devuan2.0) unstable; urgency=medium

* Bump changelog for Devuan

-- Ivan J. <parazyd@dyne.org> Thu, 12 Oct 2017 11:50:00 +0200

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

* Team upload
@@ -63,8 +340,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 +632,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)
init-system-helpers (1.29+devuan1.0) unstable; urgency=medium

[ 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.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
* update-rc.d: drop old fallback path for insserv
* update-rc.d: only use insserv if available
* Update debian/changelog
* Raise init-system-helpers Priority to required

[ Martin Pitt ]
* invoke-rc.d: Fix actions to run under systemd if there is no init.d
script. (Closes: #747851)
* invoke-rc.d: Don't start systemd units which are disabled. Restart them
only if they were already running (i. e. started manually by the admin).
(Closes: #768450)
* update-rc.d: Support /usr/lib/insserv/insserv location too, as with
newer sysvinit versions.
* Add autopkgtest which runs the tests in t/.
* Drop Michael Stapelberg and Tollef Fog Heen from Uploaders:, they stopped
systemd work long ago. Thanks for your great work in the past!
* Run wrap-and-sort -at over our debian control files.
* Update i-s-h package description to describe the newly moved tools
* Make init depend on init-system-helpers
* changelog: refer to #805487 for moving the tools
* releasing package init-system-helpers version 1.25
* Drop upstart as an alternative init dependency
* Conflict to current openrc version <= 0.18.3-1 (Closes: #811662)
* releasing package init-system-helpers version 1.26
* Add debian/clean to remove script/*1.p (Closes: #812586)
* Version the conflict to file-rc
* releasing package init-system-helpers version 1.27
* invoke-rc.d: Fix actions to run under systemd if there is no init.d script
(Closes: #747851)
* invoke-rc.d: Fix start/restart of disabled systemd units (Closes: #768450)

[ Andreas Henriksson ]
* Add support for -X option. (Closes: #760168)
* Add support for -X option (Closes: #760168)

[ Michael Biebl ]
* invoke-rc.d: Allow stop and status requests for masked systemd services.
* invoke-rc.d: Allow stop and status requests for masked systemd services
(Closes: #717109)

-- Martin Pitt <mpitt@debian.org> Fri, 05 Feb 2016 12:30:53 +0100
[ Martin Pitt ]
* update-rc.d: Support /usr/lib/insserv/insserv location too
* Add autopkgtest
* fix changelog formatting
* Drop Michael Stapelberg and Tollef Fog Heen from Uploaders:
* Run wrap-and-sort -at over our debian control files
* releasing package init-system-helpers version 1.28

init-system-helpers (1.27) unstable; urgency=high
[ Michael Biebl ]
* Use the same Maintainer name as in src:systemd
* Bump debhelper compatibility level to 9.

Urgency high to not further delay the sysvinit migration to testing, and to
avoid this going into testing with breaking file-rc.
[ Raphael Geissert ]
* invoke-rc.d: Fix behaviour when no start or stop symlink is found
(Closes: #546532)

[ Martin Pitt ]
* Add debian/clean to remove script/*1.p. (Closes: #812586)
* Version the conflict to file-rc, 0.8.17 now works fine with the moved
update-rc.d and invoke-rc.d.
* invoke-rc.d: Fix chroot install for packages without SysV script
(LP: #1543051)

-- Martin Pitt <mpitt@debian.org> Tue, 26 Jan 2016 11:35:49 +0100
[ Felipe Sateler ]
* update-rc.d: Ensure insserv doesn't fail if initscripts is not installed
(Closes: #806438)

init-system-helpers (1.26) unstable; urgency=medium
[ Benda Xu ]
* script/invoke-rc.d: Add OpenRC support
* script/update-rc.d: Add OpenRC support

* Drop upstart as an alternative init dependency, as the package got
removed.
* Conflict to current openrc version <= 0.18.3-1, to stop the upgrade before
running into the update-rc.d file conflict. (Closes: #811662)
This assumes that the next openrc upload diverts update-rc.d
(see #811708).
[ Martin Pitt ]
* releasing package init-system-helpers version 1.29

-- Martin Pitt <mpitt@debian.org> Fri, 22 Jan 2016 16:02:24 +0100
[ Daniel Reurich ]
* merged 1.29 from debian
* releasing package init-system-helpers version 1.29+devuan1.0

init-system-helpers (1.25) unstable; urgency=medium
-- Daniel Reurich <daniel@centurion.net.nz> Sun, 06 Mar 2016 14:58:19 +0000

[ Andreas Henriksson ]
* Import invoke-rc.d + update-rc.d from sysvinit 2.88dsf-59.2
(see #805487)
* Import service from sysvinit 2.88dsf-59.2
* Move service files into non-specific subdirectory
* init-system-helpers: Ship invoke-rc.d, update-rc.d and service
* Only pod2man init-system-helpers script for now
* update-rc.d: drop old fallback path for insserv
* update-rc.d: only use insserv if available
* Raise init-system-helpers Priority to required
init-system-helpers (1.24+devuan1.0) unstable; urgency=medium

[ Martin Pitt ]
* Update i-s-h package description to describe the newly moved tools.
* Make init depend on init-system-helpers, to ensure the availability of
invoke-rc.d and update-rc.d if/once sysvinit-utils becomes non-essential.
* Initial Devuanisation.
* Release +devuan1.0

-- Martin Pitt <mpitt@debian.org> Mon, 18 Jan 2016 15:13:20 +0100
-- Daniel Reurich <daniel@centurion.net.nz> Mon, 30 Nov 2015 01:20:59 +0000

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



+ 1
- 0
debian/clean View File

@@ -1 +1,2 @@
script/*.1p
man8/*.8

+ 0
- 1
debian/compat View File

@@ -1 +0,0 @@
9

+ 17
- 24
debian/control View File

@@ -1,15 +1,18 @@
Source: init-system-helpers
Section: admin
Priority: extra
Maintainer: Debian systemd Maintainers <pkg-systemd-maintainers@lists.alioth.debian.org>
Uploaders: Michael Biebl <biebl@debian.org>,
Martin Pitt <mpitt@debian.org>,
Felipe Sateler <fsateler@debian.org>
Build-Depends: debhelper (>= 9),
Priority: optional
Maintainer: Devuan Dev Team <devuan-dev@lists.dyne.org>
Uploaders: Vincenzo (KatolaZ) Nicosia <katolaz@freaknet.org>,
Daniel Reurich <daniel@centurion.net.nz>,
Mark Hindley <mark@hindley.org.uk>,
Svante Signell <svante.signell@gmail.com>
Standards-Version: 4.5.1
Origin: Devuan
Vcs-Git: https://git.devuan.org/devuan/init-system-helpers.git
Vcs-Browser: https://git.devuan.org/devuan/init-system-helpers
Build-Depends: debhelper-compat (= 13),
perl:any,
Standards-Version: 4.0.0
Vcs-Git: https://anonscm.debian.org/git/collab-maint/init-system-helpers.git
Vcs-Browser: https://anonscm.debian.org/git/collab-maint/init-system-helpers.git
python3-docutils

Package: init-system-helpers
Architecture: all
@@ -19,28 +22,18 @@ Multi-Arch: foreign
Depends: perl-base (>= 5.20.1-3),
${misc:Depends},
${perl:Depends},
Replaces: sysv-rc (<< 2.88dsf-59.3~),
sysvinit-utils (<< 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),
sysvinit-utils (<< 2.88dsf-59.3~),
Conflicts: file-rc (<< 0.8.17~),
openrc (<= 0.18.3-1),
Description: helper tools for all init systems
This package contains helper tools that are necessary for switching between
the various init systems that Debian contains (e. g. sysvinit or
systemd). An example is deb-systemd-helper, a script that enables systemd unit
files without depending on a running systemd.
the various init systems that Devuan contains (e.g. sysvinit, runit-init).
.
It also includes the "service", "invoke-rc.d", and "update-rc.d" scripts which
provide an abstraction for enabling, disabling, starting, and stopping
services for all supported Debian init systems as specified by the policy.
.
While this package is maintained by pkg-systemd-maintainers, it is NOT
specific to systemd at all. Maintainers of other init systems are welcome to
include their helpers in this package.
Maintainers of other init systems are welcome to include their helpers in this
package, provided it doesn't try to take over the world.

Package: init
Section: metapackages
@@ -48,7 +41,7 @@ Architecture: any
Priority: important
XB-Important: yes
Multi-Arch: foreign
Pre-Depends: systemd-sysv [linux-any] ${alt:sysvinit},
Pre-Depends: sysvinit-core | runit-init
Depends: init-system-helpers (>= 1.25),
${misc:Depends},
Description: metapackage ensuring an init system is installed


+ 3
- 3
debian/copyright View File

@@ -8,16 +8,16 @@ Files: debian/*
Copyright: 2013 Michael Stapelberg <stapelberg@debian.org>
License: BSD-3-clause

Files: script/service man8/service.8
Files: script/service man8/service.rst
Copyright: 2006 Red Hat, Inc
2008 Canonical Ltd
License: GPL-2+

Files: script/invoke-rc.d man8/invoke-rc.d.8
Files: script/invoke-rc.d man8/invoke-rc.d.rst
Copyright: 2000,2001 Henrique de Moraes Holschuh <hmh@debian.org>
License: GPL-2+

Files: script/update-rc.d man8/update-rc.d.8
Files: script/update-rc.d man8/update-rc.d.rst
Copyright: 1997-2005 Miquel van Smoorenburg <miquels@cistron.nl>
Members of the pkg-sysvinit project
License: GPL-2+


+ 6
- 3
debian/gbp.conf View File

@@ -1,3 +1,6 @@
[dch]
full = True
multimaint-merge = True
[DEFAULT]
debian-branch=suites/unstable
debian-tag=devuan/%(version)s

[buildpackage]
compression-level=9

+ 1
- 0
debian/init-system-helpers.dirs View File

@@ -7,4 +7,5 @@
/etc/rc6.d
/etc/rcS.d
/etc/systemd/system
/etc/systemd/user
/var/lib/systemd

+ 0
- 3
debian/init-system-helpers.lintian-overrides View File

@@ -1,3 +0,0 @@
# The upstream command is called “systemctl reenable”, so we cannot just
# rename it to “re-enable” :).
init-system-helpers: spelling-error-in-manpage usr/share/man/man1/deb-systemd-helper.1p.gz reenable re-enable

+ 0
- 14
debian/init-system-helpers.postinst View File

@@ -1,14 +0,0 @@
#!/bin/sh

set -e

# See http://bugs.debian.org/722524
if dpkg --compare-versions "$2" lt "1.9"; then
if [ -d /var/lib/systemd/deb-systemd-helper-enabled ]; then
find /var/lib/systemd/deb-systemd-helper-enabled -type f -exec chmod 644 '{}' \;
fi
fi

#DEBHELPER#

exit 0

+ 9
- 4
debian/rules View File

@@ -9,7 +9,7 @@
# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1

VERSION = $(shell dpkg-parsechangelog -S Version)
include /usr/share/dpkg/pkg-info.mk

override_dh_perl:
dh_perl -d --package=init-system-helpers
@@ -17,13 +17,18 @@ override_dh_perl:

override_dh_auto_build:
dh_auto_build
for file in $$(ls script/deb-* script/dh_*); do \
pod2man --section=1p --utf8 $$file $$file.1p; \
set -e ; \
for file in script/deb-*; do \
pod2man --section=1p --utf8 --center="init-system-helpers" --release=$(DEB_VERSION) $$file $$file.1p; \
done
set -e ; \
for file in man8/*.rst ; do \
rst2man $$file $${file%.rst}.8 ; \
done

override_dh_install:
dh_install
[ ! -d debian/init-system-helpers ] || sed -i 's/__VERSION__/$(VERSION)/' debian/init-system-helpers/usr/sbin/service
[ ! -d debian/init-system-helpers ] || sed -i 's/__VERSION__/$(DEB_VERSION)/' debian/init-system-helpers/usr/sbin/service


override_dh_gencontrol:


+ 0
- 1
debian/tests/control View File

@@ -1,5 +1,4 @@
Tests: t
Depends: @,
cpanminus,
build-essential
Restrictions: needs-root, breaks-testbed, allow-stderr, isolation-container

+ 0
- 3
debian/tests/t View File

@@ -1,9 +1,6 @@
#!/bin/sh
set -eu

mount --make-rprivate /
cpanm Linux::Clone

export TEST_ON_REAL_SYSTEM=1

for test in t/*.t; do


+ 0
- 206
man8/es/update-rc.d.8 View File

@@ -1,206 +0,0 @@
.\" Hey, Emacs! This is an -*- nroff -*- source file.
.\" Authors: Ian Jackson
.\" (c) 2003 Software in the Public Interest

.\" Traductor: Rubén Porras (nahoo@inicia.es)
.\" Revisado por : Javier Fernández-Sanguino Peńa (jfs@debian.org)
.\" Esteban Manchado Velázquez (zoso@demiurgo.org)
.\" Está basada en la página de manual original:
.\" versión 1.2 del CVS de /cvs/debian-doc/manpages/english/sysvinit/update-rc.d.8

.TH UPDATE\-RC.D 8 "23 de Diciembre de 2003" "Proyecto Debian" "sysv-rc"
.SH NOMBRE
update\-rc.d \- crea y borra los enlaces a los scripts init de tipo
System V
.SH SINOPSIS
.B update\-rc.d
.RI [ -n ]
.RI [ -f ]
.IB nombre " remove"
.HP
.B update-rc.d
.RI [ -n ]
.IB nombre " defaults"
.RI [ NN " | " NN-start " " NN-stop ]
.HP
.B update-rc.d
.RI [ -n ]
.I nombre
.BR start | stop
.IR "NN nivel_de_ejecución nivel_de_ejecución " ...
.B .
.BR start | stop
.IR "NN nivel_de_ejecución nivel_de_ejecución " ...
.BR . " ..."
.SH DESCRIPCI\['O]N
.B update-rc.d
actualiza automáticamente los enlaces a los scripts de init tipo
System V que se encuentran en
.BI /etc/rc[nivel_de_ejecución].d/NNnombre
y que apuntan a los script
.BI /etc/init.d/nombre\fR.
Estos son ejecutados por
.B init
cuando se cambia de nivel de ejecución y se usan generalmente para
arrancar y parar servicios del sistema (por ejemplo, demonios).
.I nivel_de_ejecución
es uno de los soportados por
.BR init ", " 0123456789S ,
y
.I NN
es el código de secuencia de dos dígitos usado por
.B init
para decidir en que orden se ejecutan los scripts.

Esta página del manual documenta sólo el modo de uso y comportamiento de
.BR update-rc.d .
Para una explicación más detallada sobre la administración de los
scripts de init estilo System V, por favor, lea
.BR init (8)
y el
.IR "Manual de normativa de Debian" .
.SH CREACI\['O]N DE ENLACES A LOS SCRIPTS DE INIT
Cuando se ejecuta con una o varias de las opciones
.BR defaults ", " start ", o " stop ,
.B update-rc.d
crea los enlaces
.BI /etc/rc[nivel_de_ejecución].d/[SK]NNnombre
apuntando al script
.BI /etc/init.d/nombre\fR.

Si ya existe algún fichero con el nombre
.BI /etc/rc[nivel_de_ejecución].d/[SK]??
entonces
.B update-rc.d
no hace nada. Esto es así para que el administrador del sistema pueda
reorganizar los enlaces ( teniendo en cuenta que debe dejar al
menos un enlace si los quiere eliminar ) sin que se sobreescriba su
configuración.

Si se usa la opción
.B defaults
entonces
.B update-rc.d
creará enlaces para arrancar los servicios en los niveles de ejecución
.B 2345
y parar los servicios en los niveles de ejecución
.BR 016 .
Por omisión todos los enlaces tendrán el código de secuencia 20, pero
esto puede cambiarse especificando uno o dos argumentos
.I NN.
Un argumento cambia el valor por omisión del código de secuencia tanto
para los enlaces de arranque como para los de parada, y si se
proporcionan dos argumentos el primero cambia el código de los enlaces
de arranque y el segundo el de los enlaces de parada.

En vez de usar
.B defaults
, los niveles de ejecución en los que se arranca o se para un servicio
pueden ser especificados explícitamente mediante un conjunto de
argumentos:

Cada uno de estos conjuntos empieza con un argumento
.BR start " o " stop
para especificar cuándo se van a crear enlaces para arrancar o parar
el servicio.

Luego les sigue
.IR NN ,
el código de secuencia para todos los enlaces del conjunto, y uno o
más números de nivel de ejecución, cada uno como un solo argumento. El
conjunto se termina con el argumento
.B '.'
(un punto).

Cuando se especifican explícitamente los niveles de ejecución,
normalmente habrá un conjunto
.B start
y otro
.B stop .
Si son necesarios diferentes códigos de secuencia para los
distintos niveles de ejecución, entonces es necesario especificar
varios conjuntos
.B start
y
.B stop .

El script
.BI /etc/init.d/nombre
debe existir antes de ejecutar
.B update-rc.d
para crear los enlaces.
.SH BORRADO DE LOS SCRIPTS
Cuando se ejecuta con la opción
.I remove
, update-rc.d borra todos los enlaces dentro del directorio
.BI /etc/rc[nivel_de_ejecución].d
que apunten al script
.BI /etc/init.d/nombre\fR .
El script debe haber sido borrado previamente (
.B update-rc.d
lo comprueba ).
Normalmente los scripts post-eliminación de los paquetes ejecutan
.B update-rc.d
cuando detectan que su primer argumento es
.BR purge
, dado que esto indica que el administrador ha pedido explícitamente
que se borren los scripts de configuración proporcionados por el paquete.

Cualquier fichero en los directorios
.BI /etc/rc[nivel_de_ejecución].d
que no sea un enlace simbólico apuntando a un script en
.BI /etc/init.d/nombre
se mantendrá intacto.
.SH OPCIONES
.TP
.I -n
No hacer nada, solamente indicar que hubiera hecho.
.TP
.I -f
Borrar los enlaces incluso si todavía existe el script
.BI /etc/init.d/nombre .
.SH EJEMPLOS
Crear los enlaces usando los parámetros por omisión:
.nf
.B update-rc.d foobar defaults
.fi
Comando equivalente usando explícitamente un conjunto de argumentos:
.nf
.B update-rc.d foobar start 20 2 3 4 5 . stop 20 0 1 6 .
.fi
.SH FALLOS

No existe aún una forma para que el administrador pueda especificar al menos
los niveles de ejecución que
.B update-rc.d
usará por defecto para arrancar y parar los servicios cuando se
utilice la opción
.B defaults
ni la posibilidad de cambiar otros comportamientos.
.SH FICHEROS
.TP
.B /etc/init.d/
El directorio que contienen los scripts de arranque y parada.
.TP
.B /etc/rc?.d/
Los directorios que contienen los enlaces usados por
.BR init
y administrados por
.BR update-rc.d .
.TP
.B /etc/init.d/skeleton
Un modelo a usar por los que escriban scripts de
.B init.d .

.SH VER ADEM\['A]S
.IR "Manual de normativa de Debian"
, modelo a usar por los que escriban scripts de
.B init.d .

.BR /etc/init.d/skeleton
,
.br
.BR init (8) .

.SH TRADUCTOR
Traducción de Rubén Porras Campo <debian-l10n-spanish@lists.debian.org>

+ 0
- 192
man8/fr.UTF-8/update-rc.d.8 View File

@@ -1,192 +0,0 @@
.\" Hey, Emacs! This is an -*- nroff -*- source file.
.\" Authors: Ian Jackson
.\" Traduction de la révision CVS 1.4
.TH UPDATE\-RC.D 8 "23 décembre 2003" "Projet Debian " "Utilitaires de dpkg"
.SH NOM
update\-rc.d \- Pour installer ou supprimer les liens vers les scripts
d'initialisation de type System-V
.SH SYNOPSIS
.B update\-rc.d
.RI [ -n ]
.RI [ -f ]
.IB nom " remove"
.HP
.B update-rc.d
.RI [ -n ]
.IB nom " defaults"
.RI [ NN " | " NN-start " " NN-stop ]
.HP
.B update-rc.d
.RI [ -n ]
.I nom
.BR start | stop
.IR "NN runlevel runlevel " ...
.B .
.BR start | stop
.IR "NN runlevel runlevel " ...
.BR . " ..."
.SH DESCRIPTION
.B update-rc.d
met à jour automatiquement les liens vers les scripts d'initialisation de type
System-V dont le nom est
.BI /etc/rc runlevel .d/ NNnom
vers les scripts
.BI /etc/init.d/ name \fR.
Ils sont lancés par
.B init
quand on change de niveau de fonctionnement et ils sont généralement utilisés
pour démarrer ou arrêter des services tels que les démons.
.I runlevel
est l'un des niveaux de fonctionnement autorisés par
.BR init ", " 0123456789S ,
et
.I NN
est le code à deux chiffres utilisé par
.B init
pour décider de l'ordre d'exécution des scripts.

Cette page de manuel documente seulement le comportement de
.BR update-rc.d
et son utilisation.
Pour une discussion sur la préparation des scripts pour l'initialisation de type System-V voyez
.BR init (8)
et la
.IR "charte Debian" .
.SH L'INSTALLATION DES LIENS DES SCRIPTS D'INITIALISATION
Quand update-rc.d est lancé avec les options
.BR defaults ", " start ", ou " stop,
il crée les liens
.BI /etc/rc runlevel .d/[SK] NNname
qui pointent vers le script
.BI /etc/init.d/ name\fR.

Quand des fichiers
.BI /etc/rc runlevel .d/[SK]?? name
existent déjà,
.B update-rc.d
ne fait rien. C'est ainsi pour que l'administrateur système puisse
réarranger les liens -- à condition qu'il en reste au moins un -- sans
que sa configuration ne soit réécrite.

Quand l'option
.B defaults
est utilisée,
.B update-rc.d
crée des liens pour démarrer un service dans les niveaux de fonctionnement
.B 2345
et des liens pour arrêter un service dans les niveaux
.BR 016 .
Par défaut, tous les liens ont un code égal à 20, mais on peut le changer en
donnant un ou deux arguments
.I NN ;
quand un seul argument est donné, il remplace le code à la fois pour les
liens de démarrage (start) et pour les liens d'arrêt (stop) ; quand deux
arguments sont donnés, le premier remplace le code pour les liens de
démarrage (start) et le second remplace le code pour les liens d'arrêt (stop).

Au lieu de
.B defaults,
on peut indiquer les niveaux de fonctionnement dans lesquels lancer ou
arrêter les services en utilisant une suite explicite d'ensembles d'arguments :

Chacun de ces ensembles commence par un argument
.BR start " ou " stop
de manière à indiquer s'il faut créer des liens de démarrage ou d'arrêt.
Ensuite vient le nombre du code
.IR NN ,
pour tous les liens de cet ensemble, puis un ou plusieurs nombres indiquant
le niveau de fonctionnement, un seul argument pour chacun. l'ensemble se
termine par un argument
.B .
(un simple point).

Quand, plutôt que
.BR defaults,
on utilise une détermination explicite, il faut habituellement un ensemble de
démarrage
.B start,
et un ensemble d'arrêt
.B stop.
Quand on veut différents codes dans les différents niveaux de fonctionnement,
on peut spécifier différents ensembles de démarrage
.B start
ou différents ensembles d'arrêt
.B stop.

Le script
.BI /etc/init.d/ name
doit exister avant de lancer
.B update-rc.d
pour créer les liens.
.SH LA SUPPRESSION DES SCRIPTS
Quand on appelle update-rc.d avec l'option
.I remove
les liens dans les répertoires
.BI /etc/rc runlevel .d
qui pointent vers le script
.BI /etc/init.d/ name\fR.
sont supprimés.
Ce script doit déjà avoir été supprimé --
.B update-rc.d
vérifie cela.
On appelle habituellement
.B update-rc.d
dans le script « post-removal » d'un paquet et quand ce script a détecté que
son premier argument était
.BR purge ;
Cela indique que l'utilisateur a demandé le suppression de la configuration de
ce paquet.
Tout fichier dans les répertoires
.BI /etc/rc runlevel .d
qui n'est pas un lien symbolique vers le script
.BI /etc/init.d/ name
est préservé.
.SH OPTIONS
.TP
.I -n
Ne fait rien, montre seulement ce qui pourrait être fait.
.TP
.I -f
Force la suppression des liens même si
.BI /etc/init.d/ name
existe encore.
.SH EXEMPLES
Insère des liens avec l'option « defaults » :
.nf
.B " update-rc.d foobar defaults"
.fi
La męme commande, avec une détermination explicite utilisant les ensembles
d'arguments :
.nf
.B " update-rc.d foobar start 20 2 3 4 5 . stop 20 0 1 6 ."
.fi
.SH BOGUES

Il devrait y avoir un moyen pour l'administrateur système d'indiquer à
l'option
.B defaults
au moins les niveaux de fonctionnement par défaut à utiliser pour le
démarrage et l'arrêt des services ; l'administrateur systàme devrait sans
doute aussi pouvoir changer d'autres choses.
.SH FICHIERS
.TP
.B /etc/init.d/
Le répertoire qui contient en fait les scripts d'initialisation.
.TP
.B /etc/rc?.d/
Le répertoire qui contient les liens utilisés par
.BR init
et gérés par
.BR update-rc.d.
.TP
.B /etc/init.d/skeleton
Modàle pour l'écriture des scripts de
.B init.d.
.SH VOIR AUSSI
.IR "la charte Debian" ,
.br
.BR /etc/init.d/skeleton ,
.br
.BR init (8).
.SH TRADUCTION
Philippe Batailler. Dec 2000.

+ 0
- 230
man8/invoke-rc.d.8 View File

@@ -1,230 +0,0 @@
.\" Hey, Emacs! This is an -*- nroff -*- source file.
.\" Authors: Henrique Holschuh
.TH INVOKE\-RC.D 8 "1 March 2001" "Debian Project" "Debian GNU/Linux"
.SH NAME
invoke\-rc.d \- executes System-V style init script actions
.SH SYNOPSIS
.B invoke\-rc.d
.RI [ --quiet ]
.RI [ --force ]
.RI [ --try-anyway ]
.RI [ --disclose-deny ]
.RI [ --query ]
.RI [ --no-fallback ]
.I name
.I action
.RI [ init\ script\ parameters... ]
.HP
.B invoke\-rc.d
.RI [ --help ]
.HP
.SH DESCRIPTION
.B invoke\-rc.d
is a generic interface to execute System V style init script
.BI /etc/init.d/ name \fR
actions, obeying runlevel constraints as well as any local
policies set by the system administrator.

All access to the init scripts by Debian packages' maintainer
scripts should be done through
.B invoke\-rc.d\fR.

This manpage documents only the usage and behavior of
.BR invoke\-rc.d .
For a discussion of the System V style init script arrangements please
see
.BR init (8).
More information on invoke-rc.d can be found in the section on
runlevels and init.d scripts of the
.IR "Debian Policy Manual" .

.SH INIT SCRIPT ACTIONS
The standard actions are:
.IR start ,
.IR stop ,
.IR force\-stop ,
.IR restart ,
.IR try\-restart ,
.IR reload ,
.IR force\-reload ,
and
.IR status .
Other actions are accepted, but they can cause problems to
.B policy\-rc.d
(see the
.B INIT SCRIPT POLICY
section), so warnings are generated if the policy layer
is active.

Please note that not all init scripts will implement all
the actions listed above, and that the policy layer may
override an action to another action(s), or even deny it.

Any extra parameters will be passed to the init script(s) being
executed.

If an action must be carried out regardless of any local
policies, use the
.IR --force
switch.

.SH OPTIONS
.TP
.I --help
Display usage help.
.TP
.I --quiet
Quiet mode, no error messages are generated.
.TP
.I --force
Tries to run the init script regardless of policy and
init script subsystem errors.
.B Use of this option in Debian maintainer scripts is severely discouraged.
.TP
.I --try-anyway
Tries to run the init script if a non-fatal error is
detected.
.TP
.I --disclose-deny
Return status code 101 instead of status code 0 if
the init script action is denied by the policy layer.
.TP
.I --query
Returns one of the status codes 100-106. Does not
run the init script, and implies
.IR --disclose-deny
and
.IR --no-fallback .
.TP
.I --no-fallback
Ignores any fallback action requests by the policy
layer.
.B Warning:
this is usually a very bad idea for any actions other
than
.RI start .
.SH STATUS CODES
Should an init script be executed,
.B invoke\-rc.d
always returns the status code
returned by the init script. Init scripts should not return status codes in
the 100+ range (which is reserved in Debian and by the LSB). The status codes
returned by invoke\-rc.d proper are:
.TP
0
.IR Success .
Either the init script was run and returned exit status 0 (note
that a fallback action may have been run instead of the one given in the
command line), or it was not run because of runlevel/local policy constrains
and
.B --disclose-deny
is not in effect.
.TP
1 - 99
Reserved for init.d script, usually indicates a failure.
.TP
100
.B Init script ID
.BI ( name )
.BR unknown .
This means the init script was not registered successfully through
.B update\-rc.d
or that the init script does not exist.
.TP
101
.B Action not allowed\fR.
The requested action will not be performed because of runlevel or local
policy constraints.
.TP
102
.B Subsystem error\fR.
Init script (or policy layer) subsystem malfunction. Also, forced
init script execution due to
.I --try-anyway
or
.I --force
failed\fR.
.TP
103
.I Syntax error\fR.
.TP
104
.I Action allowed\fR.
Init script would be run, but
.B --query
is in effect.
.TP
105
.I Behavior uncertain\fR.
It cannot be determined if action should be carried out or not, and
.B --query
is in effect.
.TP
106
.I Fallback action requested\fR.
The policy layer denied the requested action, and
supplied an allowed fallback action to be used instead.

.SH INIT SCRIPT POLICY
.B invoke\-rc.d
introduces the concept of a policy layer which is used to verify if
an init script should be run or not, or if something else should be
done instead. This layer has various uses, the most immediate ones
being avoiding that package upgrades start daemons out-of-runlevel,
and that a package starts or stops daemons while inside a chroot
jail.

The policy layer has the following abilities: deny or approve the
execution of an action; request that another action (called a
.IR fallback )
is to be taken, instead of the action requested in invoke\-rc.d's
command line; or request multiple actions to be tried in order, until
one of them succeeds (a multiple
.IR fallback ).

.B invoke\-rc.d
itself only pays attention to the current runlevel; it will block
any attempts to start a service in a runlevel in which the service is
disabled. Other policies are implemented with the use of the
.B policy\-rc.d
helper, and are only available if
.B /usr/sbin/policy\-rc.d
is installed in the system.

.SH FILES
.TP
.BR /etc/init.d/*
System V init scripts.
.TP
.BR /usr/sbin/policy\-rc.d
Init script policy layer helper (not required).
.TP
.BR /etc/runlevel.conf
file-rc runlevel configuration (if the file-rc package is
being used).
.TP
.BR /etc/rc?.d/*
System V runlevel configuration (if the sysv-rc package is
being used).

.SH NOTES
.B invoke\-rc.d
special cases the
.I status
action, and returns exit status 4 instead of exit status 0 when
it is denied.

.SH BUGS
Please report any bugs using the Debian bug tracking system,
http://bugs.debian.org/, packages sysv\-rc or file\-rc
(depending on which version of invoke\-rc.d you are using).
.SH SEE ALSO
.IR "Debian Policy manual" ,
.br
.BR /etc/init.d/skeleton ,
.br
.BR update\-rc.d (8),
.br
.BR init (8),
.br
.BR /usr/share/doc/init-system-helpers/README.policy-rc.d.gz

+ 223
- 0
man8/invoke-rc.d.rst View File

@@ -0,0 +1,223 @@
===================
invoke-rc.d
===================

---------------------------------------------------------
executes System-V style init script actions
---------------------------------------------------------

:Manual section: 8
:Manual group: Debian GNU/Linux
:Author:
Henrique de Moraes Holschuh

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

SYNOPSIS
========

``invoke-rc.d`` [*--quiet*] [*--force*] [*--try-anyway*] [*--disclose-deny*]
[*--query*] [*--no-fallback*] *name* *action* [*init script parameters...*]


``invoke-rc.d`` [*--help*]

DESCRIPTION
===========

``invoke-rc.d``
is a generic interface to execute System V style init script
``/etc/init.d/``\ *name*
actions, obeying runlevel constraints as well as any local
policies set by the system administrator.

All access to the init scripts by Debian packages' maintainer
scripts should be done through
``invoke-rc.d``.

This manpage documents only the usage and behavior of
``invoke-rc.d``.
For a discussion of the System V style init script arrangements please
see ``init``\(8\).
More information on invoke-rc.d can be found in the section on
runlevels and init.d scripts of the
*Debian Policy Manual*.


INIT SCRIPT ACTIONS
===================

The standard actions are:
*start*, *stop*, *force-stop*, *restart*, *try-restart*, *reload*,
*force-reload*, and *status*.
Other actions are accepted, but they can cause problems to
``policy-rc.d`` (see the ``INIT SCRIPT POLICY`` section), so
warnings are generated if the policy layer is active.

Please note that not all init scripts will implement all
the actions listed above, and that the policy layer may
override an action to another action(s), or even deny it.

Any extra parameters will be passed to the init script(s) being
executed.

If an action must be carried out regardless of any local
policies, use the *--force* switch.

OPTIONS
=======

*--help*
Display usage help.

*--quiet*
Quiet mode, no error messages are generated.

*--force*
Tries to run the init script regardless of policy and
init script subsystem errors.
**Use of this option in Debian maintainer scripts is severely discouraged.**

*--try-anyway*
Tries to run the init script if a non-fatal error is
detected.

*--disclose-deny*
Return status code 101 instead of status code 0 if
the init script action is denied by the policy layer.

*--query*
Returns one of the status codes 100-106. Does not
run the init script, and implies *--disclose-deny*
and *--no-fallback*.

*--no-fallback*
Ignores any fallback action requests by the policy
layer.
**Warning:**
this is usually a very bad idea for any actions other
than start.

*--skip-systemd-native*
Exits before doing anything if a systemd environment is detected
and the requested service is a native systemd unit.
This is useful for maintainer scripts that want to defer systemd
actions to ``deb-systemd-invoke``\(1p\)

STATUS CODES
============

Should an init script be executed, ``invoke-rc.d``
always returns the status code
returned by the init script. Init scripts should not return status codes in
the 100+ range (which is reserved in Debian and by the LSB). The status codes
returned by invoke-rc.d proper are:

0
*Success*.
Either the init script was run and returned exit status 0 (note
that a fallback action may have been run instead of the one given in the
command line), or it was not run because of runlevel/local policy constrains
and ``--disclose-deny`` is not in effect.

1 - 99
Reserved for init.d script, usually indicates a failure.

100
**Init script ID (**\ *name*\ **) unknown.**
This means the init script was not registered successfully through
``update-rc.d`` or that the init script does not exist.

101
**Action not allowed**.
The requested action will not be performed because of runlevel or local
policy constraints.

102
**Subsystem error**.
Init script (or policy layer) subsystem malfunction. Also, forced
init script execution due to *--try-anyway* or *--force*
failed.

103
*Syntax error.*

104
*Action allowed*.
Init script would be run, but ``--query`` is in effect.

105
*Behavior uncertain*.
It cannot be determined if action should be carried out or not, and
``--query``
is in effect.

106
*Fallback action requested*.
The policy layer denied the requested action, and
supplied an allowed fallback action to be used instead.


INIT SCRIPT POLICY
==================

``invoke-rc.d``
introduces the concept of a policy layer which is used to verify if
an init script should be run or not, or if something else should be
done instead. This layer has various uses, the most immediate ones
being avoiding that package upgrades start daemons out-of-runlevel,
and that a package starts or stops daemons while inside a chroot
jail.

The policy layer has the following abilities: deny or approve the
execution of an action; request that another action (called a
*fallback*)
is to be taken, instead of the action requested in invoke-rc.d's
command line; or request multiple actions to be tried in order, until
one of them succeeds (a multiple *fallback*).

``invoke-rc.d``
itself only pays attention to the current runlevel; it will block
any attempts to start a service in a runlevel in which the service is
disabled. Other policies are implemented with the use of the
``policy-rc.d``
helper, and are only available if
``/usr/sbin/policy-rc.d``
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/rc?.d/*
System V runlevel configuration.

NOTES
=====

``invoke-rc.d`` special cases the *status*
action, and returns exit status 4 instead of exit status 0 when
it is denied.

BUGS
====

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

SEE ALSO
========

| *Debian Policy manual*,
| ``/etc/init.d/skeleton``,
| ``update-rc.d``\(8\),
| ``init``\(8\),
| ``/usr/share/doc/init-system-helpers/README.policy-rc.d.gz``

+ 0
- 193
man8/ja/update-rc.d.8 View File

@@ -1,193 +0,0 @@
.\" Hey, Emacs! This is an -*- nroff -*- source file.
.\" Authors: Ian Jackson
.\" Original manpage cvs revision 1.4
.TH UPDATE\-RC.D 8 "2 March 1998" "Debian Project" "dpkg utilities"
.SH 名前
update\-rc.d \- System-V スタイルの init スクリプト用のリンクをインストール、削除する
.SH 書式
.B update\-rc.d
.RI [ -n ]
.RI [ -f ]
.IB name " remove"
.HP
.B update-rc.d
.RI [ -n ]
.RI [ -f ]
.IB name " defaults"
.RI [ NN " | " NN-start " " NN-stop ]
.HP
.B update-rc.d
.RI [ -n ]
.RI [ -f ]
.I name
.BR start | stop
.IR "NN runlevel runlevel " ...
.B .
.BR start | stop
.IR "NN runlevel runlevel " ...
.BR . " ..."
.SH 説明
.B update-rc.d
は、
スクリプト
.BI /etc/init.d/ name \fR
へのリンクである
.BI /etc/rc runlevel .d/ NNname
を自動的に作成する。
.BI /etc/rc runlevel .d/ NNname
は System V スタイルの init スクリプト用のリンクであり、
ランレベルを変更する際に
.B init
によって実行され、一般にデーモンのようなシステムサービスの起動、
停止に使用される。
.I runlevel
には
.BR init
がサポートするランレベル数
.BR 0123456789S
のうちのひとつを指定する。
.I NN
は 2 桁の数字であり、
.B init
がスクリプトを実行する順序を決めるために使用する。

このマニュアルは
.BR update-rc.d
の使用法とその動作についてのみ言及する。
System V スタイルの init スクリプトの配置についての議論には、
.BR init (8)
.IR "dpkg programmers' manual"
を参照すること。
.SH INIT スクリプト用のリンクをインストールする
.BR defaults ", " start ", " stop
オプションのいずれかを使って実行した場合、
update-rc.d は
.BI /etc/rc runlevel .d/[SK] NNname
をスクリプト
.BI /etc/init.d/ name\fR
にリンクする。

ファイル
.BI /etc/rc runlevel .d/[SK]?? name
がすでに存在する場合には、
.B update-rc.d
は何もしない。これは、システム管理者がひとつでもリンクを残していた
場合に、その設定を上書きされることがなく、別の場所に移動させること
ができるようにするためである。

.B defaults
が使用された場合、
.B update-rc.d
はランレベル
.B 2345
にサービスの起動用リンクを、ランレベル
.BR 016
にサービスの停止用リンクを作成する。デフォルトでは、リンクはすべて
のシーケンスコード 20 を持つが、引数
.I NN
をひとつ、又はふたつ与えることで変更することができる。引数がひとつ
の場合、起動用リンクと停止用リンクの両方のシーケンスコードを変更す
る。一方、引数がふたつ与えられた場合、ひとつめが起動用リンクのシー
ケンスコードを、ふたつめが停止用リンクのシーケンスコードを変更す
る。

.B defaults
を使用する代わりに、引数セットを与えることで
サービスを起動、停止するランレベルを明示的に指定することができる。

引数セットはそれぞれ引数
.BR start " または " stop
で始まり、これにより起動用リンクまたは停止用リンクのどちらを作成す
るか指定する。次に、引数セットのリンクすべてに対するシーケンスコー
ド番号
.IR NN
を指定し、更にひとつ以上のランレベル数をそれぞれひとつの引数として
与える。引数セットは引数
.B .
(ピリオド)により終了する。

.BR defaults
を使用せず明示的に指定した場合、通常
.B start
セットと
.B stop
セットがひとつずつ存在する。

ランレベルごとに異なるシーケンスコードが必要な場合は、
.B start
セットや
.B stop
セットを複数指定する。

.B update-rc.d
がリンクを作成する前に、
スクリプト
.BI /etc/init.d/ name
が存在していなくてはならない。
.SH リンク削除用のスクリプト
.I remove
オプションを引数に与えると、
.BI /etc/rc runlevel .d
ディレクトリにあるスクリプト
.BI /etc/init.d/ name\fR
へのリンクをすべて削除する。
スクリプトはあらかじめ削除されていなくてはならない。
.B update-rc.d
はこれをチェックする。通常、
.B update-rc.d
はパッケージの postrm スクリプトから呼び出される。
これが実行されるのは、postrm スクリプトの第1引数として
.BR purge
が与えられた場合であり、これはユーザがパッケージの設定を削除
することを要求していることを表す。
.BI /etc/rc runlevel .d
ディレクトリにあるがスクリプト
.BI /etc/init.d/ name
にシンボリックリンクされていないファイルは削除されずに残される。
.SH オプション
.TP
.I -n
実際の動作を表示するだけで、何もしない。
.TP
.I -f
.BI /etc/init.d/ name
が存在しいても、強制的にシンボリックリンクを削除する。
.SH 使用例
defaults を使用したリンクの作成
.nf
.B " update-rc.d foobar defaults"
.fi
引数セットを明示した同等のコマンド
.nf
.B " update-rc.d foobar start 20 2 3 4 5 . stop 20 0 1 6 ."
.fi
.SH バグ
システム管理者のために少なくとも
.B defaults
でどのランレベルを start または stop にするかを指定できる方法が必要である。
また、可能ならば
.B defaults
以外のオプションでも管理者の指定を優先する方法が必要。
.SH ファイル
.TP
.B /etc/init.d/
init スクリプトが実際に置いてあるディレクトリ
.TP
.B /etc/rc?.d/
.BR update-rc.d
が取り扱うリンクを含んだディレクトリ。
.BR init
により使用される。
.TP
.B /etc/init.d/skeleton
.B init.d
スクリプトを書くために使用する雛型
.SH 関連項目
.IR "dpkg programmers manual" ,
.br
.BR /etc/init.d/skeleton ,
.br
.BR init (8).
.SH 翻訳者
鍋谷 栄展 <nabetani@kern.phys.sci.osaka-u.ac.jp>

+ 0
- 103
man8/service.8 View File

@@ -1,103 +0,0 @@
.\" A man page for service(8). -*- nroff -*-
.\"
.\" Copyright (C) 2006 Red Hat, Inc. All rights reserved.
.\"
.\" This copyrighted material is made available to anyone wishing to use,
.\" modify, copy, or redistribute it subject to the terms and conditions of the
.\" GNU General Public License v.2.
.\"
.\" This program is distributed in the hope that it will be useful, but WITHOUT
.\" ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
.\" FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
.\" more details.
.\"
.\" You should have received a copy of the GNU General Public License along
.\" with this program; if not, write to the Free Software Foundation, Inc.,
.\" 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
.\"
.\" Author: Miloslav Trmac <mitr@redhat.com>
.\" Updated by: Petter Reinholdtsen <pere@hungry.com>

.TH service 8 "Jan 2006"

.SH NAME
service \- run a System V init script

.SH SYNOPSIS
\fBservice\fR \fISCRIPT\fR \fICOMMAND\fR [\fIOPTIONS\fR]

\fBservice \-\-status\-all\fR

\fBservice\fR \fB\-\-help\fR | \fB\-h\fR | \fB\-\-version\fR

.SH DESCRIPTION
.B service
runs a System V init script or systemd unit in as predictable an
environment as possible, removing most environment variables and with the
current working directory set to \fB/\fR.

The
.I SCRIPT
parameter specifies a System V init script,
located in \fB/etc/init.d/\fISCRIPT\fR, or the name of a systemd unit.
The existence of a systemd unit of the same name as a script in /etc/init.d
will cause the unit to take precedence over the init.d script.
The supported values of
.I COMMAND
depend on the invoked script.
.B service
passes
.I COMMAND
and
.I OPTIONS
to the init script unmodified. For systemd units, start, stop,
status, and reload are passed through to their systemctl/initctl
equivalents.

All scripts should support at least the
.B start
and
.B stop
commands.
As a special case, if
.I COMMAND
is \fB\-\-full-restart\fR, the script is run twice, first with the
.B stop
command, then with the
.B start
command.

.B service \-\-status\-all
runs all init scripts, in alphabetical order, with the
.B status
command. The status is [ + ] for running services, [ - ] for stopped
services and [ ? ] for services without a 'status' command. This
option only calls status for sysvinit jobs.