[systemd-devel] systemd user sessions?
Krzysztof Kotlenga
k.kotlenga at sims.pl
Wed Feb 24 16:41:57 UTC 2016
Jon Stanley wrote:
> I'd like a systemd unit (and only that unit) to be controlled by a
> specific user. The unit runs as this user, so I thought about user
> instances of systemd. This service should be started when the system
> starts, so you'd have to enable linger in systemd-logind for that to
> work.
>
> The question is how to make the systemd user *service* start at boot?
[Install]
WantedBy=default.target
$ systemctl --user enable foo.service
Created symlink
from /home/user/.config/systemd/user/default.target.wants/foo.service
to /home/user/.config/systemd/user/foo.service.
$
That's pretty much it.
--
pocek
More information about the systemd-devel
mailing list