diff options
author | Dennis Eriksen <d@ennis.no> | 2023-07-11 10:24:19 +0200 |
---|---|---|
committer | Dennis Eriksen <d@ennis.no> | 2023-07-11 10:24:19 +0200 |
commit | bf3df41f4bf914ae8a800f598dd4a9479e674f13 (patch) | |
tree | 5b66fabdce5cbbe5b898c1fbad2b1a4d6fb0ac86 /README.md | |
parent | updating some requirements, adding req-file for systems without the pkg crypt... (diff) | |
download | energyscripts-bf3df41f4bf914ae8a800f598dd4a9479e674f13.tar.gz |
new systemd-service with some protections
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 16 |
1 files changed, 15 insertions, 1 deletions
@@ -47,8 +47,22 @@ pg_dump --schema-only --no-owner --no-privileges el ``` +## Systemd -TODO: +Example: + +``` +ln -s /opt/energyscripts/energyscripts-SCRIPT@ADDRESS.service /etc/systemd/system/energyscripts-mqtt_listener.service +ln -s /opt/energyscripts/energyscripts-SCRIPT@ADDRESS.service /etc/systemd/system/energyscripts-esphomeapi@airgradient.local.net.service + +systemctl enable energyscripts-mqtt_listener.service energyscripts-esphomeapi@airgradient.local.net.service +systemctl start energyscripts-mqtt_listener.service energyscripts-esphomeapi@airgradient.local.net.service +journalctl -fu "energyscripts-*" + +``` + + +## TODO: Put every state in `states`-table. Entities in an entity-table, and devices in a device-table. |