From c26a684e3677afa51e3beed5300c3298432f37ef Mon Sep 17 00:00:00 2001 From: Matt Singleton Date: Sun, 4 Feb 2024 13:40:26 -0600 Subject: systemd service file to run rotate.py and make sure it shuts down cleanly --- epd.service | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 epd.service (limited to 'epd.service') 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 -- cgit v1.2.3