init-system-helpers updates for native openrc

Matthias Geiger werdahias at riseup.net
Sun Nov 22 14:56:10 GMT 2026


On Sun, 22 Nov 2026 14:30, Mark Hindley <mark at hindley.org.uk> wrote:
>Hi,
>
>I have been working on better init-system-helpers support for openrc. I *think*
>the intention of i-s-h and Debian Policy is that symlinks for the various
>init-systems should always be present and handled by a package's maintscripts,
>making switching possible (theoretically, at least!).  However, the existing
>openrc support is only activated if openrc is installed and rc-update is
>present.
>
>Attached are patches to:-
>
> 1. Fix the longstanding update-rc.d remove not actually requiring -f bug (#680293)
>
> 2. Always handle openrc symlinks beneath /etc/runlevels in update-rc.d.
>
> 3. Add native openrc runlevel support to invoke-rc.d.
>
> 4. Update manpages.
>
> 5. Incidental cleanup of some unused variables.
>
>This *should* mean that existing debhelper postinst fragments also work for
>openrc and we only have to add handling for d/package.openrc to
>dh_installinit. I anticipate this will be much easier than a whole new dh_
>module and/or helper and will avoid significant changes to Policy. It should
>also require minimal maintainer change within packages other than adding
>d/package.openrc.
>
>Thoughts on the approach and any comments or testing would be fabulous.
>

Hi Mark, hi Josch,

I can't comment on the code, but I will try to build a i-s-h package 
with those changes and test it. One additional note:

Does this include a check to not call update-rc.d when native openrc is 
running? I think I started work on that. sysv services can never work 
under openrc-native and thus must not be started on package 
installation.

best,

-- 

Matthias Geiger <werdahias>

Debian Developer -- KiCad Contributor
GPG: ECBEDBB607B9B2BE



More information about the Debian-init-diversity mailing list