mirror of
https://github.com/akuker/RASCSI.git
synced 2024-06-01 19:41:48 +00:00
c887edfc8c
* Use the pi_shutdown method to restart the rascsi service * Use the pi_shutdown method to restart the rascsi service * Remove modifications to sudoers no longer needed * Introduce sleeps attempting to connect to socket; reduce overall number of retries * Remove systemd helped methods and the functionality that depends on it * Attempts to speed up splash code * Remove unneccessary verbosity * Attempt to optimize service definition
17 lines
439 B
Desktop File
17 lines
439 B
Desktop File
[Unit]
|
|
Description=Monitor RaSCSI service
|
|
After=network.target rascsi.service
|
|
|
|
[Service]
|
|
Type=simple
|
|
Restart=always
|
|
RestartSec=2s
|
|
ExecStart=/home/pi/RASCSI/src/oled_monitor/start.sh
|
|
ExecStop=/bin/pkill --signal 2 -f "python3 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
|