[CentOS] Problem with RequiresMountsFor defined in a systemd service

Wed Apr 21 13:15:17 UTC 2021
Kris Knigga (TT) <kris at trade.tt>

On Wed, Apr 21, 2021 at 2:37 AM Carlos Lopez <clopmz at outlook.com> 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 ..
>
>
Maybe set up the NFS mount with autofs instead?