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
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:
- try to add a user daemon in opernc and see if works (any one)
- try to enable/disable/start/stop it too, from the systemctl commands (thanks to the wrapper provided by elive)
- verify how to make "psd" (browsers on ram) work in openrc (needed to support it correctly in elive)
mentions: @triantares @maxinou