git.haldean.org bitpic / bf01a0c
add systemd unit file for runmatrix Haldean Brown 11 months ago
1 changed file(s) with 15 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
0 [Unit]
1 Description=Run bitpic serial matrix driver
2 After=network.target
3
4 [Service]
5 User=pi
6 WorkingDirectory=/home/pi/bitpic
7 ExecStart=/usr/bin/python3 runmatrix.py
8
9 # Restart every >2 seconds to avoid StartLimitInterval failure
10 RestartSec=3
11 Restart=always
12
13 [Install]
14 WantedBy=multi-user.target