Re: s6-rc user experience question

2022-10-17 Thread Ihor Antonov
On 2022-10-18 12:13, Alexis wrote: > https://github.com/flexibeast/s6-man-pages > > which at least some distros provide as a package. > > Hi, Alexis. Thanks for pointing out. I am on FreeBSD and it looks like it is not packaged here. I will see if I can package it myslef, if time permits.

Re: s6-rc as user service manager

2022-10-17 Thread Ihor Antonov
On 2022-10-18 00:58, Laurent Bercot wrote: > > By testing I meant checking if the directory has an active process > > watching it. I believe there is a function in skalibs fd_lock [1] > > that svscan uses to check if another svscan runs there. I think it is > > just a matter of exposing that

Re: s6-rc user experience question

2022-10-17 Thread Alexis
Ihor Antonov writes: - there are no manual pages that would help with the point above, and short help messages are not very useful. ( I often resort to reading https://skarnet.org/software/s6 from my browser ) i might well be misunderstanding what you're saying, but as Laurent

Re: s6-rc as user service manager

2022-10-17 Thread Laurent Bercot
Thanks Peter, this was actually helpful and enchanced my mental model. I think I get get away for now with a user's tree rooted in the system tree. My graphics environment (sway) can start necessary services when it is started. Yeah, it's a recurring discussion on the IRC channels, and my

Re: s6-rc as user service manager

2022-10-17 Thread Ihor Antonov
On 2022-10-17 23:42, Peter Shkenev wrote: > ... > 1) User services are services running as a given user and started at a > boot time > This option is a trivial one with s6. > > 2) User services are services defined by users and running supervised > when the user wants it. > You can implement this

Re: s6-rc user experience question

2022-10-17 Thread Laurent Bercot
Perhaps a higher-level orchestration tool(s) is/are needed, that will accomplish most typical workflows like: (...) These are all valid points, and things that ultimately s6-frontend, the future UI over s6/s6-linux-init/s6-rc, aims to solve. "Higher-level interface" is the (now) #1 feature

Re: s6-rc as user service manager

2022-10-17 Thread Peter Shkenev
Hello, On Mon Oct 17, 2022 at 8:50 PM MSK, Ihor Antonov wrote: > Kicking off another thread because it is slightly different from UX > related questions. > > I am trying to get s6-rc set up as a user service manager (similar how > systemd allows user's to manage their own services with systemctl

s6-rc as user service manager

2022-10-17 Thread Ihor Antonov
Kicking off another thread because it is slightly different from UX related questions. I am trying to get s6-rc set up as a user service manager (similar how systemd allows user's to manage their own services with systemctl --user start bla). This is useful for example for starting user's dbus,

Re: s6-rc user experience question

2022-10-17 Thread Ihor Antonov
On 2022-10-17 13:11, Laurent Bercot wrote: > > No, because these are operations that are ideally done at different > times. > - Compilation happens "offline", before you (re)boot the machine. > - s6-svscan is run independently from s6-rc, typically very early > during the boot sequence.

Re: s6-rc user experience question

2022-10-17 Thread Laurent Bercot
Perhaps I can offer a few suggestions how to improve usability: - combine compile + svscan on empty dir + init steps into one, like `s6-rc init source_dir` and it does those steps under the hood. No, because these are operations that are ideally done at different times. - Compilation