# Adjust the paths below as necessary
# (WorkingDirectory & ExecStart)
# Copy this file to /etc/systemd/system/
# Run 'sudo systemctl daemon-reload'
# Now you can 'sudo systemctl [start|stop|reload] octomonitor'
# Run 'sudo systemctl enable octomonitor' if
# you want the service to start on boot

[Unit]
Description=Octopi ePaper Monitor
After=syslog.target
After=network.target

[Service]
RestartSec=30s
Type=simple
User=pi
Group=pi
WorkingDirectory=/home/pi/epaper/
ExecStart=/usr/bin/python3 /home/pi/epaper/octomonitor.py
KillSignal=SIGINT
Restart=on-failure

[Install]
WantedBy=multi-user.target