[systemd-devel] user unit with delayed users homes mount - ?

Andrei Borzenkov arvidjaar at gmail.com
Fri Oct 14 11:56:52 UTC 2022


On Fri, Oct 14, 2022 at 2:48 PM lejeczek <peljasz at yahoo.co.uk> wrote:
>
>
>
> On 14/10/2022 12:02, Andrei Borzenkov wrote:
> > On Fri, Oct 14, 2022 at 12:59 PM lejeczek <peljasz at yahoo.co.uk> wrote:
> >> Hi guys.
> >>
> >> I'm on Centos 8 S with systemd 239.
> >> Users homes are mounted at later (latest?) stage off NFS so when such a user logs in then:
> >>
> >> -> $ systemctl --user status -l xyz.service
> >> Unit xyz.service could not be found.
> >> -> $ systemctl --user daemon-reload
> >> -> $ systemctl --user status -l xyz.service
> >> ● xyz.service - Podman container-xyz.service
> >>     Loaded: loaded (/apps/appownia/.config/systemd/user/xyz.service; enabled; vendor preset: enabled)
> >>     Active: inactive (dead)
> >>       Docs: man:podman-generate-systemd(1)
> >>
> >> Is it possible and if so then how, to make "systemd" account for such a "simple" case - where home dir is net mounted very late?
> >>
> > Without knowing how exactly your home directories are mounted it is
> > rather hard to answer. Are they mounted from within /etc/fstab?
> Homes are mounted by other daemons started later(by systemd).
>

Have you tried to set those daemons Before=systemd-logind.service?


More information about the systemd-devel mailing list