Your message dated Tue, 17 Sep 2024 15:49:46 +0000
with message-id <[email protected]>
and subject line Bug#1081994: fixed in init-system-helpers 1.67
has caused the Debian Bug report #1081994,
regarding service: support native openrc-run scripts
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)
--
1081994: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1081994
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: init-system-helpers
Version: 1.65.2
Severity: normal
Tags: patch
Dear Luca,
I would be grateful if you could apply the attached patch for /usr/sbin/service
so that it works correctly with native openrc-run scripts. For such scripts,
manually setting the internal openrc symlinks actually prevents the script from
running as openrc-run then detects the script as having already been started.
I appreciate that this is not an area of Debian that directly interests you. I
would be happy to do an NMU and push the commit to salsa, if you would
prefer. Just let me know.
Thanks
Mark
-- System Information:
Debian Release: 12.7
merged-usr: yes
Architecture: amd64 (x86_64)
Kernel: Linux 6.1.0-22-amd64 (SMP w/2 CPU threads; PREEMPT)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8),
LANGUAGE=en_GB:en
Shell: /bin/sh linked to /bin/dash
Init: OpenRC (via /run/openrc), PID 1: init
Versions of packages init-system-helpers is related to:
ii insserv 1.24.0-1
-- no debconf information
>From 09d16e51a3de83d4a1f1c4fdd6285ca94db816ad Mon Sep 17 00:00:00 2001
From: Mark Hindley <[email protected]>
Date: Sun, 15 Sep 2024 15:35:31 +0100
Subject: [PATCH] Don't manually set status symlinks for native openrc-run
scripts.
For native openrc-run scripts, fiddling with the links before the script is run
actually prevents it from running as openrc-run detects the status has been
changed and considers the script as already started.
Fixes:-
> grep '^#! */\(usr/\)\?sbin/openrc-run' /etc/init.d/fstrim
#!/sbin/openrc-run
> sudo service fstrim status
* status: stopped
> sudo service fstrim start
* WARNING: fstrim has already been started
---
script/service | 2 ++
1 file changed, 2 insertions(+)
diff --git a/script/service b/script/service
index 08f69bb..44f565c 100755
--- a/script/service
+++ b/script/service
@@ -140,6 +140,8 @@ run_via_sysvinit() {
}
update_openrc_started_symlinks() {
+ # Skip native openrc-run files
+ grep -q '^#! */\(usr/\)\?sbin/openrc-run' $SERVICEDIR/$SERVICE && return
# maintain the symlinks of /run/openrc/started so that
# rc-status works with the service command as well
if [ -d /run/openrc/started ] ; then
--
2.39.5
--- End Message ---
--- Begin Message ---
Source: init-system-helpers
Source-Version: 1.67
Done: Luca Boccassi <[email protected]>
We believe that the bug you reported is fixed in the latest version of
init-system-helpers, which is due to be installed in the Debian FTP archive.
A summary of the changes between this version and the previous one is
attached.
Thank you for reporting the bug, which will now be closed. If you
have further comments please address them to [email protected],
and the maintainer will reopen the bug report if appropriate.
Debian distribution maintenance software
pp.
Luca Boccassi <[email protected]> (supplier of updated init-system-helpers
package)
(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [email protected])
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512
Format: 1.8
Date: Tue, 17 Sep 2024 17:07:33 +0200
Source: init-system-helpers
Architecture: source
Version: 1.67
Distribution: unstable
Urgency: medium
Maintainer: Debian systemd Maintainers
<[email protected]>
Changed-By: Luca Boccassi <[email protected]>
Closes: 1081994
Changes:
init-system-helpers (1.67) unstable; urgency=medium
.
[ Mark Hindley ]
* Don't manually set status symlinks for native openrc-run scripts. For
native openrc-run scripts, fiddling with the links before the script
is run actually prevents it from running as openrc-run detects the
status has been changed and considers the script as already started.
(Closes: #1081994)
.
[ Luca Boccassi ]
* d/control: bump Standards-Version to 4.7.0, no changes
Checksums-Sha1:
6071a695d0ba421c1d3eff08626b943da573a9bd 2234 init-system-helpers_1.67.dsc
755e9a35a21532fe29417df20da68f387cb27240 45180 init-system-helpers_1.67.tar.xz
554fe33713acbde74fb393096a0176820a554fb8 7304
init-system-helpers_1.67_source.buildinfo
Checksums-Sha256:
26e89df8709f6af0bc7629df7d6ccd327227ab9be8788c9232ffe9b559a7e86d 2234
init-system-helpers_1.67.dsc
3fa7f7f1cffd0300363b49062c953023705009640e50141b00362e9fb40c5556 45180
init-system-helpers_1.67.tar.xz
12f943d5147a3c93d1d4a9c65fadbbcae8353ccf51216358799c7c151a559dac 7304
init-system-helpers_1.67_source.buildinfo
Files:
699a43911a8f5b9af5c46b430f3f711f 2234 admin optional
init-system-helpers_1.67.dsc
2e9aca25d147b253d9809fe54484b458 45180 admin optional
init-system-helpers_1.67.tar.xz
9589ae370c8db3652f7017baf632a7c0 7304 admin optional
init-system-helpers_1.67_source.buildinfo
-----BEGIN PGP SIGNATURE-----
iQJFBAEBCgAvFiEErCSqx93EIPGOymuRKGv37813JB4FAmbpn+wRHGJsdWNhQGRl
Ymlhbi5vcmcACgkQKGv37813JB7dUw//R/DYeHNXujMiSzqBtj9DxRzpDXA6Rrhe
PB8q9toAezcO158z8TfVysQwwiRsZncHyL29gUM9Ntt+9N3bxOYZR8hmEbDDVyKl
bJesJ72c03a3Kv3K8gPiAFaAGzMpnOd5AIZXt/rjDYsDqM02uihBFKvLKgu1LlM2
MIyMPAFTuNLh44PAtN7n+5tZsaSebZHyEos82YtHh1Id0yHKh4T76XsqEC3kVSfi
wvj+xgXfVF5QCJd1oC72+TwzaLHCoPwahs67ZdBeN4ZSGOteJGWvT7OkOboL4j3L
xku41TYKl/BlEXP6/3+esFBUJIKeS4y6ehRwm97p4ajzB0CsiIhu5omQBpmmvm+Y
VXZh8VltFlJNTEOUue1j1OMjNXIav5vjnC0c9wFcBruf/MLKS2JWMSaO3glxYizq
5dKKqCb7VXpwoSYUE998oi1tP5cPkQMEPiRkg9wVYyUVSxKghqTk2KHHk3bIVpEj
j84z5MFWRSWOFe4+/YUmVWfW8S7b1WLvhOENID6OPES3/2gZ4lxU10iTNwPVqPT1
Nkqyk0CmS3jT7hmWBIF58bg4qS+oAm5JU2zfejKFQl03rqqEO10IYAykbbihDpL9
oC2dv/yUAU8nLSZzNP1BELK70RmqrQHKT95sLv0q9ziXcbJzHAEyuPjLPyLMu+eG
V53xrADt9js=
=6KAU
-----END PGP SIGNATURE-----
pgpwQr9dhfkWu.pgp
Description: PGP signature
--- End Message ---