From 81d4fd67d4abc33f8a159d522bdb1b28a61b2555 Mon Sep 17 00:00:00 2001 From: Scott Lamb Date: Wed, 10 Jul 2019 02:00:10 -0700 Subject: [PATCH] suggest RequireMountsFor in systemd service file Besides using one line instead of two, this avoids the need to do hex escaping of characters like hyphens. --- guide/install.md | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/guide/install.md b/guide/install.md index ef37479..c7faf99 100644 --- a/guide/install.md +++ b/guide/install.md @@ -76,12 +76,11 @@ $ sudo vim /etc/systemd/system/moonfire-nvr.service $ sudo systemctl daemon-reload ``` -You'll want to add lines similar to the following to the `[Unit]` section of +You'll want to add a line similar to the following to the `[Unit]` section of the file: ``` -After=media.nvr.mount -Requires=media-mvr.mount +RequiresMountsFor=/media/nvr ``` ## Completing configuration through the UI