aboutsummaryrefslogtreecommitdiff
path: root/epd.service
diff options
context:
space:
mode:
authorMatt Singleton <matt@xcolour.net>2024-02-04 13:40:26 -0600
committerMatt Singleton <matt@xcolour.net>2024-02-04 13:40:26 -0600
commitc26a684e3677afa51e3beed5300c3298432f37ef (patch)
tree3e61776ddbf72f95c9ca38a29cc9ccce21313106 /epd.service
parentbc7d47c1911aff00c1dff49368b2f4ecb5fe4355 (diff)
systemd service file to run rotate.py and make sure it shuts down cleanlyHEADmain
Diffstat (limited to 'epd.service')
-rw-r--r--epd.service14
1 files changed, 14 insertions, 0 deletions
diff --git a/epd.service b/epd.service
new file mode 100644
index 0000000..696562b
--- /dev/null
+++ b/epd.service
@@ -0,0 +1,14 @@
+[Unit]
+Description=Electrophoretic Display Controller
+
+[Service]
+Type=simple
+Environment=PYTHONPATH=/opt/epd/waveshare_epd.whl
+ExecStart=/usr/bin/python3 /opt/epd/rotate.py --debug --clear /opt/epd/images/
+WorkingDirectory=/opt/epd
+User=epd
+Restart=on-failure
+KillSignal=SIGINT
+
+[Install]
+WantedBy=multi-user.target