blob: a9b6564e65ebfc56926fc53dfc56e8ae6a88ae57 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
[Unit]
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
User={{repeater_user}}
Group={{repeater_user}}
WorkingDirectory={{repeater_data_dir}}
ExecStart={{repeater_venv_dir}}/bin/python -m repeater.main --config {{repeater_config_dir}}/config.yaml
Restart=always
RestartSec=5
StandardOutput=journal
StandardError=journal
[Install]
WantedBy=multi-user.target
|