Systemd Services¶
Generate systemd unit files for long-running voltkeeper services.
mqtt-publish-service¶
Generates a systemd unit file for the MQTT publish command.
voltkeeper mqtt-publish-service AA:BB:CC:DD:EE:FF --broker 192.168.1.100
Options¶
Options mirror mqtt-publish plus:
Option |
Description |
|---|---|
|
System user to run as (default: current user) |
|
Path to voltkeeper executable (default: auto-detect) |
|
Write to file instead of stdout |
mqtt-listen-service¶
Generates a systemd unit file for the MQTT listen shutdown watchdog.
voltkeeper mqtt-listen-service --serial 2409000123456 --broker 192.168.1.100
Options¶
Options mirror mqtt-listen plus:
Option |
Description |
|---|---|
|
System user to run as (default: root, needed for shutdown) |
|
Path to voltkeeper executable (default: auto-detect) |
|
Write to file instead of stdout |
Installing a generated service¶
sudo cp voltkeeper-*.service /etc/systemd/system/
sudo systemctl daemon-reload
sudo systemctl enable --now voltkeeper-*.service