On Fri, Apr 24, 2026 at 01:41:21PM +0000, Laurent Bercot wrote:
> I don't understand, what is the step you want to perform?
> - is it before you use your setup for the first time and you want
> to install your first database in a way that will be usable?
Probably this. I will start same set of services with different
prefixes. And their prefix is not predetermined. When I start river (or
X server) I want to start same set of services at the same scandir if
possible. Like:
first set:
- river.wayland-0:A
- river.wayland-0:B
- river.wayland-0:C
second set (same scandir):
- river.wayland-1:A
- river.wayland-1:B
- river.wayland-1:C
"river.wayland-0:" prefixed set of services will be started by river at
launch. When I start another river instance, it will spawn same set of
services with different prefix. probably "river.wayland-1:".
If I understand correctly, only way to do this is use of s6-rc-init with
-p option. And I have to create different livedirs for each one set of
services. I can't do this correctly. Here is set of services:
$ s6-rc-set-status -r repository river
foot/active
beansprout/active
gammastep/usable
tmux/masked
Whenever I want to initialize a live directory at river startup, I have
to copy repository/compiled/river to a separate location and link it to
a directory named ${prefix}.current where prefix is river.wayland-X or
whatever:
$ ls -l compiled/
river.wayland-0.current -> .river:_at_4000000069ea3f7711733e95:Zs5X7z
river.wayland-2.current -> river.wayland-2.initial
river.wayland-2.initial
user.current -> .user:_at_4000000069ea24b500228aab:jsJ9la
Here I initialized all of them by hand and then user s6-rc-set-install
on river.wayland-0.current and user.current.
What I am looking/hoping is a little bit more convenient way or
correction of this way. If this is how users are supposed to use this
tools, I will go with this. Since s6-rc-repo commands handle lots fo
copying and symlinking by themselves. I am looking for a middle layer
command for s6-rc-init. So I can initialize a livedir with my selection
of set easily.
BTW attachment has my init script for s6 without s6-rc. river runs it at
it's startup.
> - is it in regular use, when you log in and want to start services
> on your db?
I don't think I understand this question. I'm aware my usecase is not a
tested use case. Maybe I should not even do that.
- text/plain attachment: init
Received on Fri Apr 24 2026 - 19:46:09 CEST