Systemd tips and tricks

From HPCWIKI
Revision as of 08:40, 13 April 2023 by Admin (talk | contribs) (Created page with "=== Ensure the mount path is accessible before the service === <code>[Unit] RequiresMountsFor=<path required></code> This will ensure the path is accessible before starting the service and also will mount it if it's not already (unless it has noauto specified).")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Ensure the mount path is accessible before the service

[Unit]
RequiresMountsFor=<path required>

This will ensure the path is accessible before starting the service and also will mount it if it's not already (unless it has noauto specified).