-
Notifications
You must be signed in to change notification settings - Fork 2
Support systemd user units/services #7
Comments
A user unit would require a user manager( The user manager would start any services enabled by the user ( config in ~USER/.config/systemd/user ). This is tricky, because just enabling a service for a user would start the service on every machine, the user logs in (and starts a user manager for the session). You'd have to use something like The other option would be not to enable the service for the user, but call something like |
We already built our systemd package with So, the
I was thinking about the last option, because we still use mxstartup. I thought the user name can be specified in |
Yes, but you still need to start the user manager on system boot.
I don't know, from where |
more or less getuid() and getpwuid() ... Should work with su |
This works:
Where testservice2 is defined (not not enabled!) by the user in
One problem here might be, that 'systemctl start testservice2 Hmmm..... |
From the ArchWiki:
To avoid cluttering
/etc/systemd/system
with unit files for specific projects, it’d be nice if unit files from within the project could be started/enabled.From systemd.unit(5):
The text was updated successfully, but these errors were encountered: