LibrePortal/scripts/checks/requirements/check_webui_systemd.sh
librelad 8cdf5fb294 revert(footprint): drop the libreportal.service rename
The rename was justified partly by an anticipated second `libreportal-regen`
unit — which we then decided not to create (the poll rides the existing task
processor). What's left is cosmetic, and it isn't worth a footprint_version bump
(which forces a root re-install on every existing box) plus the dual-name
migration cruft.

Reverting also means the rename was the ONLY footprint change in the regen work,
so the whole regen system now ships as a plain manager-owned code deploy — no
root re-install needed. footprint_version stays 2.

Kept only the accurate FOOTPRINT.md note that the service also drives the poll.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Signed-off-by: librelad <librelad@digitalangels.vip>
2026-05-25 23:27:44 +01:00

14 lines
391 B
Bash
Executable File

#!/bin/bash
checkWebUISystemdRequirement()
{
if [[ $CFG_REQUIREMENT_WEBUI_SERVICE == "true" ]]; then
### Check if systemd service is running
if runSystem systemctl is-active --quiet libreportal.service; then
isSuccessful "LibrePortal task processor service is running."
else
isNotice "LibrePortal task processor service is not running."
((preinstallneeded++))
fi
fi
}