parent
63543d6c1e
commit
2cc80506b5
@ -0,0 +1,24 @@
|
||||
# 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
|
||||
Restart=on-failure
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
Loading…
Reference in new issue