[systemd-devel] User systemd unit files

Chris Morgan chmorgan at gmail.com
Wed Sep 10 18:32:19 PDT 2014


On Sep 10, 2014 5:46 PM, "Zbigniew Jędrzejewski-Szmek" <zbyszek at in.waw.pl>
wrote:
>
> On Tue, Sep 09, 2014 at 07:39:17PM -0400, Chris Morgan wrote:
> > >> >> Specifically, running `systemd --user` directly is not supported
> > >> >> anymore. The user mode still works, but only for one "user"
instance
> > >> >> per UID, launched through user@<uid>.service (recent releases
start
> > >> >> this automatically upon logging in).
> > > Try 'systemctl --user'. If this start you can put units
> > > it ~/.config/systemd/user/ or a similar path (check systemd.unit(5)
out).
> > >
> > > Zbyszek
> >
> > I tried --user but I get some errors that I pasted above. It looks
> > like it is no longer supported but I'm not sure.
>
> If you're getting the same message as above, you are still typing
> systemd instead of systemctl.
>
> Zbyszek

Ahh. The man page seemed to indicate that one should run systemd with
--user first.

I was able to run unit files via systemctl --user but the SYSTEMD_USER_PATH
environment variable doesn't seem to be working, even though it is
mentioned in the man page. If I place them in ~/.config/systemd/units they
are recognized. I'm going to try a symlink from there to where I was hoping
to point via SYSTEMD_USER_PATH. Should I be setting XDG_CONFIG_HOME? I was
looking to put the files at ~/somegitrepo/units/

Chris
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/systemd-devel/attachments/20140910/ac7b2014/attachment.html>


More information about the systemd-devel mailing list