4 ms·
Absolutely. I've started managing my user services using systemd --user and portable services and it's just amazing how well the individual components work tog
by esarbe 4y ago
Absolutely.
I've started managing my user services using systemd --user and portable services and it's just amazing how well the individual components work together to create fully isolated, containerized, per-user services.
I'm lovin' it and I'm not missing the hot mess of the dozens of shell scripts that I needed before.
- effie 4y agoWhat kind of user services and "portable services" are you managing? I have trouble imagining what that means. User pulseaudio daemon on your laptop/desktop? Or some server services for many clients?
- esarbe 4y agoPortable services are a systemd thing: https://systemd.io/PORTABLE_SERVICES/ https://systemd.io/PORTABLE_SERVICES/ In short it allows you to bundle your application in one file and have it run in a sandbox. Like a docker container, but without docker, managed by systemd. https://wiki.archlinux.org/title/Systemd/User https://wiki.archlinux.org/title/Systemd/User User services are also a systemd thing; you can create systemd unit files (service descriptions) and have them run as a user. So as a user you can manage your own running processes using the same systemctl interface as system processes. If you are allowed to "linger" on a system, you can run user processes as a service, set them up and tear them down without root permissions. I have several systems where I run i.e. webservices without having full root access. I build an portable systems image, deploy it to the server and then can manage that service with my unprivileged user account. Systemd does all the usual things, like logging, supervision, resource quotas, and so on.