RASCSI/python/ctrlboard/service-infra/piscsi-ctrlboard.service

15 lines
318 B
Desktop File

[Unit]
Description=PiSCSI Control Board service
After=network-online.target piscsi.service
[Service]
Type=simple
Restart=always
RestartSec=2s
ExecStart=/home/pi/piscsi/python/ctrlboard/start.sh
ExecStop=/bin/pkill --signal 2 -f "python3 src/main.py"
SyslogIdentifier=PISCSICTRLB
[Install]
WantedBy=multi-user.target