summaryrefslogtreecommitdiff
path: root/xwing-sensor.service
diff options
context:
space:
mode:
Diffstat (limited to 'xwing-sensor.service')
-rw-r--r--xwing-sensor.service15
1 files changed, 15 insertions, 0 deletions
diff --git a/xwing-sensor.service b/xwing-sensor.service
new file mode 100644
index 0000000..f8e3095
--- /dev/null
+++ b/xwing-sensor.service
@@ -0,0 +1,15 @@
+[Unit]
+Description=xwing-sensor: SI7021 temperature/humidity display on e-Paper HAT
+After=multi-user.target
+
+[Service]
+Type=simple
+User=pi
+WorkingDirectory=/home/pi/xwing_sensor
+Environment=PYTHONPATH=/home/pi/e-Paper/RaspberryPi_JetsonNano/python/lib
+ExecStart=/home/pi/xwing_sensor/.venv/bin/xwing-sensor
+Restart=on-failure
+RestartSec=10
+
+[Install]
+WantedBy=multi-user.target