Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.debian.bugs.dist > #1268680
| From | Mark Hindley <mark@hindley.org.uk> |
|---|---|
| Newsgroups | linux.debian.bugs.dist |
| Subject | Bug#1119659: openrc: rc-status always shows services as started |
| Date | 2025-11-01 19:20 +0100 |
| Message-ID | <LMomJ-9IpG-3@gated-at.bofh.it> (permalink) |
| References | (2 earlier) <LLMhs-9gUr-3@gated-at.bofh.it> <LLrmF-92K5-1@gated-at.bofh.it> <LLUoG-9mCT-11@gated-at.bofh.it> <LLrmF-92K5-1@gated-at.bofh.it> <LLUoG-9mCT-11@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
Control: tags -1 patch
Hi,
On Fri, Oct 31, 2025 at 10:14:26AM +0000, Mark Hindley wrote:
> I will look at a patch for rc-service.
This patch fixes behaviour of rc-service with LSB scripts for me. Can you
verify?
Mark
commit 0edb02ba39700b38a6dc983f0239b11eb2792c04
Author: Mark Hindley <mark@hindley.org.uk>
Date: Fri Oct 31 19:01:15 2025 +0000
rc-service: override LSB shebang and use openrc-run explicitly.
This ensures state is correctly updated for LSB scripts.
See https://bugs.debian.org/1119659
diff --git a/src/rc-service/rc-service.c b/src/rc-service/rc-service.c
index 08cba9a6..07d80d81 100644
--- a/src/rc-service/rc-service.c
+++ b/src/rc-service/rc-service.c
@@ -166,7 +166,10 @@ int main(int argc, char **argv)
return 0;
if (if_stopped && !(state & RC_SERVICE_STOPPED))
return 0;
- *argv = service;
+ /* Add explicit interpreter to override LSB scripts */
+ argv--;
+ argv[0] = "/sbin/openrc-run";
+ argv[1] = service;
execv(*argv, argv);
eerrorx("%s: %s", applet, strerror(errno));
/* NOTREACHED */
Back to linux.debian.bugs.dist | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Bug#1119659: openrc: rc-status always shows services as started Frost <debian@brightfur.net> - 2025-10-30 04:20 +0100
Bug#1119659: openrc: rc-status always shows services as started Mark Hindley <mark@hindley.org.uk> - 2025-10-30 20:30 +0100
Bug#1119659: openrc: rc-status always shows services as started "Frost" <debian@brightfur.net> - 2025-10-31 02:40 +0100
Bug#1119659: openrc: rc-status always shows services as started Mark Hindley <mark@hindley.org.uk> - 2025-10-31 11:20 +0100
Bug#1119659: openrc: rc-status always shows services as started Mark Hindley <mark@hindley.org.uk> - 2025-11-01 19:20 +0100
Bug#1119659: openrc: rc-status always shows services as started Frost <debian@brightfur.net> - 2025-11-02 00:10 +0100
Bug#1119659: openrc: rc-status always shows services as started Mark Hindley <mark@hindley.org.uk> - 2025-11-02 09:10 +0100
csiph-web