Re: Problem with RequiresMountsFor defined in a systemd service

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



Hi! As mentioned above but feel free to add _netdev so that the OS does not
bother to mount before network is available :)

On Wed, 21 Apr 2021, 15:24 Jonathan Billings, <billings@xxxxxxxxxx> wrote:

> On Wed, Apr 21, 2021 at 07:36:26AM +0000, Carlos Lopez wrote:
> >
> > Hi all,
> >
> >  I have setup a systemd service that needs to mount a NFS share before
> starts. To accomplish this I have defined:
> >
> > RequiresMountsFor=/data/sysos
> >
> > As a dependency in [Unit] section but it doesn’t work. NFS share is
> defined in fstab with “defaults,noauto” options also ..
> >
> > What am I doing wrong? How can I debug this?
>
> Having 'noauto' in the fstab options means that it can only be mounted
> explicitly, and not through automatic mounting (which is what systemd
> would do if you set it up as an automount).
>
> You need to either fix it so it gets mounted on demand, or use some
> other method to start it.
>
> --
> Jonathan Billings <billings@xxxxxxxxxx>
> _______________________________________________
> CentOS mailing list
> CentOS@xxxxxxxxxx
> https://lists.centos.org/mailman/listinfo/centos
>
_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
https://lists.centos.org/mailman/listinfo/centos




[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]


  Powered by Linux