I have two machines, a server, and a NAS.
I'm running Ubuntu 20.04 on my server, with the return of load shedding, I've noticed the server starts up before the NAS - this kicks off the systemd docker service - which loads various containers.
Some of the containers are shutting down (or going into a safe mode) because they expect certain nfs mounts to be available.
I'd like to add something to the docker service so it waits for the nfs mounts - opening snap.docker.dockerd.service - I'm confronted with this line:
[Unit]
# Auto-generated, DO NOT EDIT
So - my question is - how can I delay the service startup until /mnt/media is available?
I'm running Ubuntu 20.04 on my server, with the return of load shedding, I've noticed the server starts up before the NAS - this kicks off the systemd docker service - which loads various containers.
Some of the containers are shutting down (or going into a safe mode) because they expect certain nfs mounts to be available.
I'd like to add something to the docker service so it waits for the nfs mounts - opening snap.docker.dockerd.service - I'm confronted with this line:
[Unit]
# Auto-generated, DO NOT EDIT
So - my question is - how can I delay the service startup until /mnt/media is available?