[systemd-devel] Unable to get service to wait for a mount before starting

Andrei Borzenkov arvidjaar at gmail.com
Tue Oct 29 06:43:13 UTC 2024


On Tue, Oct 29, 2024 at 5:50 AM Adam Nielsen <a.nielsen at shikadi.net> wrote:
>
> I tried using RequiresMountsFor=/mnt/share however again, if it runs too
> early in the boot process the mount is not there and the unit fails to
> start, and is not retried (logs just say "Job myservice.service/start
> failed with result 'dependency'.")
>

RequiresMountsFor only works if systemd knows about this mount point
which in practice usually means this mount point must be present in
/etc/fstab.


More information about the systemd-devel mailing list