From ebe7990bf3dd475f1963a0c1eaaa5f230f3d5d48 Mon Sep 17 00:00:00 2001 From: Evgeny Zinoviev Date: Wed, 7 Jun 2023 19:56:55 +0300 Subject: wip --- systemd/inverter_mqtt_receiver.service | 13 +++++++++++++ systemd/inverter_mqtt_sender.service | 2 +- 2 files changed, 14 insertions(+), 1 deletion(-) create mode 100644 systemd/inverter_mqtt_receiver.service (limited to 'systemd') diff --git a/systemd/inverter_mqtt_receiver.service b/systemd/inverter_mqtt_receiver.service new file mode 100644 index 0000000..fedf11f --- /dev/null +++ b/systemd/inverter_mqtt_receiver.service @@ -0,0 +1,13 @@ +[Unit] +Description=Inverter MQTT receiver +After=clickhouse-server.service + +[Service] +User=user +Group=user +Restart=on-failure +ExecStart=/home/user/homekit/src/inverter_mqtt_util.py receiver +WorkingDirectory=/home/user + +[Install] +WantedBy=multi-user.target \ No newline at end of file diff --git a/systemd/inverter_mqtt_sender.service b/systemd/inverter_mqtt_sender.service index e3925f6..34272bb 100644 --- a/systemd/inverter_mqtt_sender.service +++ b/systemd/inverter_mqtt_sender.service @@ -6,7 +6,7 @@ After=inverterd.service User=user Group=user Restart=on-failure -ExecStart=/home/user/homekit/src/inverter_mqtt_sender.py +ExecStart=/home/user/homekit/src/inverter_mqtt_util.py sender WorkingDirectory=/home/user [Install] -- cgit v1.2.3