On Mon, 3 Nov 2025 10:09:46 +0100
Marc Haber <[email protected]> wrote:

> On Mon, Nov 03, 2025 at 10:07:52AM +0100, Marc Haber wrote:
> >Would you want to take over or co-maintain the package? I can put
> >the package on salsa and you can file a merge request. I just can't 
> >guarantee that the code will work under all circumstances.  
> 
> Did you take a look at policy-rcd-declarative? I haven't, but if that 
> one helps more (it looks more sophisticated than my code) I'd be
> tempted to deprecate my version.
> 
> Greetings
> Marc
> 

I have looked at it, but don't believe it's suitable. My use case for
policyrcd-script-zg2 is to be able to ensure that if the system is
booted in a particular "mode" (controlled by customizing the systemd
target the system boots into), only services that are actively running
can be restarted; services that are not yet running should not be
started. This is important since the boot "mode" in question is
designed to only allow a special whitelist of services to start. At the
same time, I also want to be able to make it so that I can explicitly
tell apt to not even restart services that are actively running.

policyrcd-script-zg2 fits my use case best, since it lets me explicitly
set a policy-rc.d implementation via the `POLICYRCD` variable, and once
it allows me to use a drop directory for scripts, I'll be able to make
it so that apt's normal service restart behavior works in most
instances, and the special behavior described above can be triggered
when booting in a non-standard mode.

--
Aaron

Attachment: pgpT38HEuzWVy.pgp
Description: OpenPGP digital signature

Reply via email to