Systemd service

This commit is contained in:
Tim 2020-02-16 19:28:58 +11:00
parent 925c38feb4
commit 4767da3041
1 changed files with 13 additions and 0 deletions

13
piweather.service Normal file
View File

@ -0,0 +1,13 @@
[Unit]
Description=Pi Weather via Display
After=network.target
[Service]
ExecStart=/usr/bin/env python3 /home/pi/Documents/Pi-Weather/pi_weather.py
ExecStopPost=papirus-clear
Type=simple
Restart=always
RestartSec=10s
[Install]
WantedBy=default.target