Systemd tips and tricks

From HPCWIKI
Revision as of 09:20, 17 April 2023 by Admin (talk | contribs) (Admin moved page Systemd tips and trick to Systemd tips and tricks without leaving a redirect)
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).