20 lines
738 B
Desktop File
20 lines
738 B
Desktop File
# QNAP front-panel LCD menu on esh-nas-pve. Source: eshpfi services/qnap-lcd/ (playbooks/qnap-lcd.yaml).
|
|
# Replaces the repo's unit, which ran a shell wrapper with no restart: when the menu died (it always did on
|
|
# Proxmox, see lcd-menu.py), nothing brought it back and the panel froze on "Initializing...".
|
|
[Unit]
|
|
Description=QNAP front-panel LCD menu
|
|
After=network-online.target
|
|
Wants=network-online.target
|
|
|
|
[Service]
|
|
Type=simple
|
|
WorkingDirectory=/usr/local/bin/qnap_lcd
|
|
ExecStartPre=/usr/bin/python3 /usr/local/bin/qnap_lcd/preinit.py
|
|
ExecStart=/usr/bin/python3 /usr/local/bin/qnap_lcd/lcd-menu.py
|
|
ExecStopPost=/usr/bin/python3 /usr/local/bin/qnap_lcd/shutdown.py
|
|
Restart=on-failure
|
|
RestartSec=10
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|