summaryrefslogtreecommitdiff
path: root/systemd/sensors_bot.service
diff options
context:
space:
mode:
Diffstat (limited to 'systemd/sensors_bot.service')
-rw-r--r--systemd/sensors_bot.service12
1 files changed, 12 insertions, 0 deletions
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