From bf3df41f4bf914ae8a800f598dd4a9479e674f13 Mon Sep 17 00:00:00 2001 From: Dennis Eriksen Date: Tue, 11 Jul 2023 10:24:19 +0200 Subject: new systemd-service with some protections --- README.md | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) (limited to 'README.md') diff --git a/README.md b/README.md index 4c3444a..d0a9f96 100644 --- a/README.md +++ b/README.md @@ -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. -- cgit v1.2.3