diff options
author | Evgeny Zinoviev <me@ch1p.io> | 2021-11-27 16:17:05 +0300 |
---|---|---|
committer | Evgeny Zinoviev <me@ch1p.io> | 2022-04-24 01:33:04 +0300 |
commit | c412bf2ee0a3fbf9032fc32a26837d4fbc7585c5 (patch) | |
tree | 5cca6bcab79331ad82cab4219c7692b9dd4eea21 /systemd |
initial public
Diffstat (limited to 'systemd')
-rw-r--r-- | systemd/gpiorelayd.service | 13 | ||||
-rw-r--r-- | systemd/inverter_bot.service | 13 | ||||
-rw-r--r-- | systemd/inverter_mqtt_sender.service | 13 | ||||
-rw-r--r-- | systemd/pump_bot.service | 13 | ||||
-rw-r--r-- | systemd/sensors_bot.service | 12 | ||||
-rw-r--r-- | systemd/sensors_mqtt_receiver.service | 13 | ||||
-rw-r--r-- | systemd/sensors_mqtt_sender.service | 13 | ||||
-rw-r--r-- | systemd/si7021d.service | 10 | ||||
-rw-r--r-- | systemd/sound_bot.service | 12 | ||||
-rw-r--r-- | systemd/sound_node.service | 13 | ||||
-rw-r--r-- | systemd/sound_sensor_node.service | 13 | ||||
-rw-r--r-- | systemd/sound_sensor_server.service | 13 |
12 files changed, 151 insertions, 0 deletions
diff --git a/systemd/gpiorelayd.service b/systemd/gpiorelayd.service new file mode 100644 index 0000000..d8ea8bf --- /dev/null +++ b/systemd/gpiorelayd.service @@ -0,0 +1,13 @@ +[Unit] +Description=GPIO Relay Daemon +After=network-online.target + +[Service] +User=root +Group=root +Restart=on-failure +ExecStart=/home/user/homekit/src/gpiorelayd.py -с /etc/gpiorelayd_pump.toml +WorkingDirectory=/root + +[Install] +WantedBy=multi-user.target
\ No newline at end of file diff --git a/systemd/inverter_bot.service b/systemd/inverter_bot.service new file mode 100644 index 0000000..96612ae --- /dev/null +++ b/systemd/inverter_bot.service @@ -0,0 +1,13 @@ +[Unit] +Description=InfiniSolar V 5KW Inverter Telegram Bot +After=inverterd.service + +[Service] +User=user +Group=user +Restart=on-failure +ExecStart=/home/user/homekit/src/inverter_bot.py +WorkingDirectory=/home/user + +[Install] +WantedBy=multi-user.target diff --git a/systemd/inverter_mqtt_sender.service b/systemd/inverter_mqtt_sender.service new file mode 100644 index 0000000..e3925f6 --- /dev/null +++ b/systemd/inverter_mqtt_sender.service @@ -0,0 +1,13 @@ +[Unit] +Description=Inverter MQTT sender +After=inverterd.service + +[Service] +User=user +Group=user +Restart=on-failure +ExecStart=/home/user/homekit/src/inverter_mqtt_sender.py +WorkingDirectory=/home/user + +[Install] +WantedBy=multi-user.target
\ No newline at end of file diff --git a/systemd/pump_bot.service b/systemd/pump_bot.service new file mode 100644 index 0000000..dd8a46b --- /dev/null +++ b/systemd/pump_bot.service @@ -0,0 +1,13 @@ +[Unit] +Description=Water Pump Telegram Bot +After=gpiorelayd.service + +[Service] +User=user +Group=user +Restart=on-failure +ExecStart=/home/user/homekit/src/pump_bot.py +WorkingDirectory=/home/user + +[Install] +WantedBy=multi-user.target
\ No newline at end of file diff --git a/systemd/sensors_bot.service b/systemd/sensors_bot.service new file mode 100644 index 0000000..50128b3 --- /dev/null +++ b/systemd/sensors_bot.service @@ -0,0 +1,12 @@ +[Unit] +Description=Sensors Telegram Bot +After=network-online.target + +[Service] +Restart=on-failure +User=user +WorkingDirectory=/home/user +ExecStart=/home/user/homekit/src/sensors_bot.py + +[Install] +WantedBy=multi-user.target
\ No newline at end of file diff --git a/systemd/sensors_mqtt_receiver.service b/systemd/sensors_mqtt_receiver.service new file mode 100644 index 0000000..e67c112 --- /dev/null +++ b/systemd/sensors_mqtt_receiver.service @@ -0,0 +1,13 @@ +[Unit] +Description=sensors mqtt receiver +After=network.target + +[Service] +User=user +Group=user +Restart=on-failure +ExecStart=python3 /home/user/home/src/sensors_mqtt_receiver.py +WorkingDirectory=/home/user + +[Install] +WantedBy=multi-user.target diff --git a/systemd/sensors_mqtt_sender.service b/systemd/sensors_mqtt_sender.service new file mode 100644 index 0000000..54da7f6 --- /dev/null +++ b/systemd/sensors_mqtt_sender.service @@ -0,0 +1,13 @@ +[Unit] +Description=Sensors MQTT sender +After=si7021d.service + +[Service] +User=user +Group=user +Restart=on-failure +ExecStart=/home/user/homekit/src/sensors_mqtt_sender.py +WorkingDirectory=/home/user + +[Install] +WantedBy=multi-user.target
\ No newline at end of file diff --git a/systemd/si7021d.service b/systemd/si7021d.service new file mode 100644 index 0000000..646746b --- /dev/null +++ b/systemd/si7021d.service @@ -0,0 +1,10 @@ +[Unit] +Description=si7021 daemon +After=network-online.target + +[Service] +Restart=on-failure +ExecStart=/home/user/homekit/src/si7021d.py --config /etc/si7021d.toml + +[Install] +WantedBy=multi-user.target diff --git a/systemd/sound_bot.service b/systemd/sound_bot.service new file mode 100644 index 0000000..63bde89 --- /dev/null +++ b/systemd/sound_bot.service @@ -0,0 +1,12 @@ +[Unit] +Description=MyHomeKit's Sound Bot for Telegram +After=network-online.target + +[Service] +Restart=on-failure +User=user +WorkingDirectory=/home/user +ExecStart=/home/user/homekit/src/sound_bot.py + +[Install] +WantedBy=multi-user.target
\ No newline at end of file diff --git a/systemd/sound_node.service b/systemd/sound_node.service new file mode 100644 index 0000000..9d47a4f --- /dev/null +++ b/systemd/sound_node.service @@ -0,0 +1,13 @@ +[Unit] +Description=MyHomeKit Sound Node (ALSA HTTP Frontend) +After=network-online.target + +[Service] +User=root +Group=root +Restart=on-failure +ExecStart=/home/user/homekit/src/sound_node.py --config /etc/sound_node.toml +WorkingDirectory=/root + +[Install] +WantedBy=multi-user.target
\ No newline at end of file diff --git a/systemd/sound_sensor_node.service b/systemd/sound_sensor_node.service new file mode 100644 index 0000000..595e050 --- /dev/null +++ b/systemd/sound_sensor_node.service @@ -0,0 +1,13 @@ +[Unit] +Description=MyHomeKit Sound Sensor Node +After=network-online.target + +[Service] +User=root +Group=root +Restart=on-failure +ExecStart=/home/user/homekit/src/sound_sensor_node.py --config /etc/sound_sensor_node.toml +WorkingDirectory=/root + +[Install] +WantedBy=multi-user.target
\ No newline at end of file diff --git a/systemd/sound_sensor_server.service b/systemd/sound_sensor_server.service new file mode 100644 index 0000000..f45abed --- /dev/null +++ b/systemd/sound_sensor_server.service @@ -0,0 +1,13 @@ +[Unit] +Description=MyHomeKit Sound Sensor Central Server +After=network-online.target + +[Service] +User=user +Group=user +Restart=on-failure +ExecStart=/home/user/homekit/src/sound_sensor_server.py +WorkingDirectory=/home/user + +[Install] +WantedBy=multi-user.target
\ No newline at end of file |