Systemd tips and tricks: Difference between revisions

From HPCWIKI
Jump to navigation Jump to search
(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).")
 
m (Admin moved page Systemd tips and trick to Systemd tips and tricks without leaving a redirect)
(No difference)

Revision as of 09:20, 17 April 2023

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).