RASCSI/python/oled/service-infra/rascsi-oled.service
2022-01-09 20:22:19 +01:00

17 lines
435 B
Desktop File

[Unit]
Description=RaSCSI-OLED service
After=network.target rascsi.service
[Service]
Type=simple
Restart=always
RestartSec=2s
ExecStart=/home/pi/RASCSI/python/oled/start.sh
ExecStop=/bin/pkill --signal 2 -f "python3 src/rascsi_oled_monitor.py"
# Sleep 2s as a crude way for the python interrupt handler to take effect and show the shutdown splash
ExecStop=/bin/sleep 2
SyslogIdentifier=RASCSIMON
[Install]
WantedBy=multi-user.target