mirror of
https://github.com/akuker/RASCSI.git
synced 2024-11-24 14:31:51 +00:00
17 lines
450 B
Desktop File
17 lines
450 B
Desktop File
[Unit]
|
|
Description=PiSCSI-OLED Monitor service
|
|
After=network-online.target piscsi.service
|
|
|
|
[Service]
|
|
Type=simple
|
|
Restart=always
|
|
RestartSec=2s
|
|
ExecStart=/home/pi/piscsi/python/oled/start.sh
|
|
ExecStop=/bin/pkill --signal 2 -f "python3 src/piscsi_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=PISCSIMON
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|