Commit 56dc1d5
committed
Use RequiresMountsFor on datadir
It is quite common for the data directory to be on its own mount.
Systemd can ensure a directory is mounted before a service starts using
RequiresMountsFor[1]:
> Takes a space-separated list of absolute paths. Automatically adds
> dependencies of type Requires= and After= for all mount units required
> to access the specified path.
[1]: https://www.freedesktop.org/software/systemd/man/latest/systemd.unit.html#RequiresMountsFor=1 parent a04ab92 commit 56dc1d5
1 file changed
+3
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
6 | 9 | | |
7 | 10 | | |
8 | 11 | | |
| |||
0 commit comments