ceph-ensure-mount.service 488 B

1234567891011121314151617181920
  1. # A service that calls 'mount -a' until success
  2. #
  3. # Since neither systemd-mount or the ceph mount module have retry logic, this ensure CephFS is
  4. # is mounted at boot time.
  5. # See https://github.com/systemd/systemd/issues/4468#issuecomment-453386363
  6. [Unit]
  7. Description=Ensure the ceph mount succeeds
  8. Requires=ceph.target
  9. StartLimitInterval=200
  10. StartLimitBurst=20
  11. [Service]
  12. Type=simple
  13. ExecStart=/usr/bin/mount -a
  14. Restart=on-failure
  15. RestartSec=30
  16. [Install]
  17. WantedBy=multi-user.target