Skip to main content
Topic: Some basic s6 questions (Read 960 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

Some basic s6 questions

How do I determine what bundles a given service is a part of?

Can I query a service *type* using one of the s6-rc-* apps?

Re: Some basic s6 questions

Reply #1
How do I determine what bundles a given service is a part of?

Sadly, I don't think there's a handy way to do that with s6-rc-db. You could list every bundle with s6-rc-db and then check the contents of each bundle. This sounds like something that's worth sending a patch to upstream s6-rc for if anyone gets motivated enough.

Quote
Can I query a service *type* using one of the s6-rc-* apps?

Yeah, you can just do s6-rc-db type service.

Re: Some basic s6 questions

Reply #2
How do I determine what bundles a given service is a part of?

Quote
$ service=hwclock; for bundle in $(s6-rc-db list bundles); do pkgs=$(s6-rc-db contents $bundle | grep -- $service); [ ! -z "$pkgs" ] && echo $bundle; done
misc
boot
Replace hwclock with the name of the service.