Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Has anyone ever managed to have per user systemd services?

For whatever reason it never works for me, including timers.



Yup. You need to enable the "linger" stuff, so that jobs work when the user isn't around.

But I deploy a lot of services running as specific users and it works well. Good overview here:

https://wiki.archlinux.org/index.php/systemd/User

(You can install global services, and add `user=x`, etc, obviously. But I like to keep things self-contained.)


The target names for install are confusingly different (default vs multi-user) , check that when enabling, works really well




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: