[artix-general] [s6] How to migrate from legacy s6-rc-bundle with default+boot bundles to new contents.d

Colin S cs at rtx.ksac.uk
Mon Feb 7 11:25:16 CET 2022



On 07/02/2022 04:35, Javier wrote:
> 
> Thanks a lot, only services/oneshots I added.  Just so you know, the 
> reason I asked is that I have a bunch of services/oneshots under 
> *default*, which I didn't add, actually they are the majority:
> 
>> % sudo s6-rc-db contents default

My understanding is that s6-rc-db lists bundle contents recursively. 
Since default contains boot, the above command will list everything s6 
is going to start. In order to identify *only* those services you have 
added to default yourself, you need to do something like:-

s6-rc-db contents default | tee d.tmp
s6-rc-db contents boot | tee b.tmp
diff b.tmp d.tmp

The diff output should enable you to figure out the appropriate entries 
to make in adminsv/contents.d.

I would just like to add that the new system feels like a huge step 
forward. The old system was operating only on the compiled database, 
whereas the source database now becomes the definitive reference which 
is much easier to understand. I quickly felt comfortable enough to 
disable the compatibility mechanism. Thanks Dudemanguy for doing all the 
heavy lifting.

Colin




More information about the artix-general mailing list