You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
602 B
26 lines
602 B
# 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
|