I made a new / better version of my AUR package alsabeep-dkms (https://aur.archlinux.org/packages?O=0&K=alsabeep-dkms) which is useful for machines without a PC Speaker. When active it uses alsa to handle terminal bells.
I have tested on aarch64 with manjaro systemd and x86_x64 with artix runit. I use the install hooks to add & remove appropriate service files.
I don't know dinit or openrc (is s6 still a thing) well enough to code up the right sort of run scripts.
I would be grateful if anyone more knowledgeable can help.
Currently all this is in this install file (https://aur.archlinux.org/cgit/aur.git/tree/install?h=alsabeep-dkms) which checks the /bin/init link to see what kind of code it should create.
You should read up documentation.
https://github.com/OpenRC/openrc/blob/master/service-script-guide.md
But here is something for the lazy who don't like reading. That said, please read before pasting stuff in some generator.
http://openrc.run/