• Re: [gentoo-user] sinit (suckless init) + daemontools-encore on Gentoo

    From Eli Schwartz@21:1/5 to Eduardo Santos on Wed Nov 6 21:00:01 2024
    This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --------------Vo8AKBKnNNyECLBd9bo0JQpd
    Content-Type: text/plain; charset=UTF-8
    Content-Transfer-Encoding: quoted-printable

    On 11/5/24 8:44 PM, Eduardo Santos wrote:
    I'm willing to do a lot of work myself to make this work, but if Portage or some other core Gentoo subsystem doesn't play well with sinit or daemontools-encore it'd be just a waste of time.


    The main issues really, would be:

    - gentoo's @system set requires virtual/service-manager, and
    daemontools-encore is not listed as a provider. You might need to
    provide a custom virtual/service-manager ebuild alongside sinit.

    - writing your own service scripts for packages you use, obviously --
    gentoo tends to include service definitions for openrc and systemd out
    of the box but beyond that you are on your own... :)


    Both problems are easy to solve, I'm sure.


    --
    Eli Schwartz

    --------------Vo8AKBKnNNyECLBd9bo0JQpd--

    -----BEGIN PGP SIGNATURE-----

    wnsEABYIACMWIQTnFNnmK0TPZHnXm3qEp9ErcA0vVwUCZyvIfgUDAAAAAAAKCRCEp9ErcA0vV8fO AP9GYyckyqsmX4dzPs286CY5wITw4cT74Vjy2NpBDBKlhQEAktmW4+XixKAdqosDglOFMZQWr2X5 bn+YpEQOcOk7bQs=
    =lhfE
    -----END PGP SIGNATURE-----

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Jack@21:1/5 to Eduardo Santos on Wed Nov 6 20:50:01 2024
    On 2024.11.05 20:44, Eduardo Santos wrote:
    I searched for sinit on the gentoo-user archives and couldn't find
    anything, there's only a few Reddit threads which don't help much.
    Would it
    be possible to follow the steps here[1] to use sinit +
    daemontools-encore
    on Gentoo, or are there hard dependencies on OpenRC that make this impossible?

    This is completely for fun. I'm aware of discussions of this init vs.
    that
    init and I don't hate systemd/OpenRC or anything like that. Again,
    this is
    just for fun.

    I'm willing to do a lot of work myself to make this work, but if
    Portage or
    some other core Gentoo subsystem doesn't play well with sinit or daemontools-encore it'd be just a waste of time.

    [1] https://troubleshooters.com/linux/diy/suckless_init_on_plop.html

    If Gentoo had a hard dep on ANY init system, it is likely the other
    init systems would have problems running under Gentoo. (Also, remember
    that just because something is installed doesn't necessarily mean it
    has to run.) While I don't think anyone can guarantee you won't run
    into any problems, I can't think of any reason what you want to do
    shouldn't work. It sounds like a very interesting exercise, although I
    might try it in a virtual machine first, as they suggest, even if you
    use Gentoo instead of Plop. Let us know how it works.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From =?iso-8859-1?Q?Ho=EBl_B=E9zier?=@21:1/5 to All on Thu Nov 14 23:02:23 2024
    Am Di, Nov 05, 2024 am 10:44:48 -0300 schrieb Eduardo Santos:
    I searched for sinit on the gentoo-user archives and couldn't find
    anything, there's only a few Reddit threads which don't help much. Would it >be possible to follow the steps here[1] to use sinit + daemontools-encore
    on Gentoo, or are there hard dependencies on OpenRC that make this >impossible?

    This is completely for fun. I'm aware of discussions of this init vs. that >init and I don't hate systemd/OpenRC or anything like that. Again, this is >just for fun.

    I'm willing to do a lot of work myself to make this work, but if Portage or >some other core Gentoo subsystem doesn't play well with sinit or >daemontools-encore it'd be just a waste of time.

    [1] https://troubleshooters.com/linux/diy/suckless_init_on_plop.htm

    Chiming in a bit late, but what you want to do would be totally feasible: I actually run gentoo with s6-linux-init (instead of sinit) and s6 (instead of daemontools-encore). As someone else said, the most troublesome part is writing
    service scripts for every service I need since none are provided by gentoo packages.

    Have fun. :)

    -----BEGIN PGP SIGNATURE-----

    iQIzBAABCAAdFiEElZjiR4iQkYjVEGdt6jPCPrF3Nk0FAmc2c28ACgkQ6jPCPrF3 Nk3GQRAAtPIHwkzm9K3EVuTQrUmQVBMtY4XziMUmG81IHKhizbtKvClo+SRqKW7+ p/ZuZDayU0jG8dXVh5ZJlEgf1TkEA3VDv1NrqmGCP9bZigCUUOv0MqaylQKsGYPu uBbQQzC+RZg21zqAeyYzakc78cIUviA4sQqwvfq1uBiASDJH7sEFarkMGooxTkrX CH6TJSEPvwx6907eUfdgZE1f+h8DldYy7ghTbIJZII/oZ03EWZOuUg6NH8Jfhzwg mAcEpeNvh045TQ4Dj3iK+gwZCmHG6/Cc73Me3oDsf7jgCZhc1otCyhht5xDt7Z2d kgXMgzJbDbcFHcdoF9rTvd5y9LNlczhld8RcVAZzYj+dfCRI9oB4nmSc++1xKDKq Dv6/1obMKl5s4LgLV/PYjdKsL4rU8qtJ/z4d+YkfH5mb3c1jrsC/3F4GwEHjC5z1 +oPriq7ibTvfPhBHKcdL6p8DHCgv4ClFmkduDFIrYANW99PGPRUwa4tChA3+BGm8 0bvUGQQwpWB1kPjCrMt6NSjq+jqTQXNHnVDFurttmoFK2Ewm04b49BkMUp/tc0BE S8wwUqyeuijefWkF4Mmfd2HZw0AGyOmgB88yNQr5pbEUdMBdq61RGgNPTMEwsqjP U2FIhs3OhJDftNQ04IszNAcER1lWMdqwesPHK4XFXEwMlVekFbM=
    =qt4B
    -----END PGP SIGNATURE-----

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)