mirror of
https://pagure.io/fedora-infra/ansible.git
synced 2026-03-20 03:57:02 +08:00
There's this annoying pattern where the NFS mount fails on boot and then the worker services all start up and take jobs, but they instafail because the share isn't there. Ideally we could handle this very easily with Restart= directives but systemd has...*opinions* about this: https://github.com/systemd/systemd/issues/4468 https://github.com/systemd/systemd/issues/1312 so we have to do some fairly awkward hacks to just express: * Retry the NFS mount if it fails * Don't start the workers unless the NFS mount is up * Retry the workers after a while if they were blocked It's ugly, but in testing this same config on one worker it seems to work... Signed-off-by: Adam Williamson <awilliam@redhat.com>