diff options
| -rw-r--r-- | openhop/repeater/templates/openhop-repeater.service.j2 | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/openhop/repeater/templates/openhop-repeater.service.j2 b/openhop/repeater/templates/openhop-repeater.service.j2 index 53aa737..a9b6564 100644 --- a/openhop/repeater/templates/openhop-repeater.service.j2 +++ b/openhop/repeater/templates/openhop-repeater.service.j2 @@ -2,6 +2,11 @@ Description=openHop MeshCore Repeater After=network-online.target Wants=network-online.target +# Block startup until the storage backing the data dir (and thus the node +# identity file) is mounted, so the daemon loads the real keypair instead of +# generating a fresh one onto the bare mountpoint. Resolves to the root mount +# (harmless) when the data dir lives on the SD card. +RequiresMountsFor={{repeater_data_dir}} [Service] Type=simple |
