OpenRC: Daemons run by user

Systemd supports "daemons run by user", and this is a very wanted and needed feature, configure your user to do things, one example of this requirement is for "psd", which is the feature called "browser-on-ram" in elive

~ ❯❯❯ elive-browsers-on-ram --help
Usage: elive-browsers-on-ram [--quiet] enable|disable|configure

Which is basically a script that configures psd for you.

Back to the topic, this can be possible with systemd because has daemons run by user, for example:

~ ❯❯❯ grep system /usr/bin/elive-browsers-on-ram  
    systemctl --user stop psd.service psd-resync.service
    systemctl --user disable psd.service psd-resync.service
    systemctl --user enable psd.service psd-resync.service
    systemctl --user start psd.service psd-resync.service

    if ! systemctl --user list-dependencies 1>/dev/null 2>&1 ; then ...
~ ❯❯❯

Now, OpenRC also supports user daemons in recent versions if im not wrong (last version included in elive trixie), but I have not yet betatested it, so this thread is to welcome anyone that wants to play with this feature :slight_smile: the documentation of openrc to do that is available online, and remember that elive implemented a feature on which the previous systemctl commands should simply work on openrc (thanks to the wrapper in elive that translates these commands.

Things to test:

  1. try to add a user daemon in opernc and see if works (any one)
  2. try to enable/disable/start/stop it too, from the systemctl commands (thanks to the wrapper provided by elive)
  3. verify how to make "psd" (browsers on ram) work in openrc (needed to support it correctly in elive)

mentions: @triantares @maxinou

Hi, I'll try to test it tomorrow afternoon, in fact, as I read this I remember that Browser in RAM seems no functional in my ThinkPad upgraded to Trixie, maybe for this.

Tomorrow I'll try to test that you want.