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 <[email protected]> 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 */

