Skip to content
This repository was archived by the owner on Jan 7, 2026. It is now read-only.

Commit f375628

Browse files
CopilotStolas
andcommitted
Ensure Mosquitto and InfluxDB start in all stack modes
- Add mosquitto and influxdb to the list of services that run in nvr_only mode - These are core infrastructure services needed by both IoT/SCADA and NVR components - Mosquitto provides MQTT messaging used by Frigate for event notifications - InfluxDB stores metrics and can be used by NVR components - Updated both automatic startup and manual service start logic - This ensures Mosquitto starts independently of zigbee2mqtt or other services Co-authored-by: Stolas <610753+Stolas@users.noreply.github.com>
1 parent 5920ff7 commit f375628

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

startup.sh

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1154,7 +1154,8 @@ start_manual_service() {
11541154
fi
11551155

11561156
# go2rtc is available for ALL stack types (Fixes #15) - no restriction needed
1157-
if [ "$SERVICE_NAME" != "frigate" ] && [ "$SERVICE_NAME" != "doubletake" ] && [ "$SERVICE_NAME" != "compreface" ] && [ "$SERVICE_NAME" != "go2rtc" ] && [ "$stack_type" == "nvr_only" ]; then
1157+
# Mosquitto and InfluxDB are core infrastructure services needed by both IoT and NVR components
1158+
if [ "$SERVICE_NAME" != "mosquitto" ] && [ "$SERVICE_NAME" != "influxdb" ] && [ "$SERVICE_NAME" != "frigate" ] && [ "$SERVICE_NAME" != "doubletake" ] && [ "$SERVICE_NAME" != "compreface" ] && [ "$SERVICE_NAME" != "go2rtc" ] && [ "$stack_type" == "nvr_only" ]; then
11581159
echo "ERROR: ${SERVICE_NAME} is not enabled in your configuration (NVR only mode)."
11591160
echo "To enable IoT/SCADA services, delete ${CONFIG_FILE} and run ./startup.sh to reconfigure."
11601161
exit 1
@@ -1271,8 +1272,9 @@ setup_system() {
12711272
continue
12721273
fi
12731274
# go2rtc is available for ALL stack types (Fixes #15) - no skip needed
1274-
# Skip IoT services if stack type is nvr_only (but keep frigate, doubletake, compreface, and go2rtc)
1275-
if [ "$SERVICE" != "frigate" ] && [ "$SERVICE" != "doubletake" ] && [ "$SERVICE" != "compreface" ] && [ "$SERVICE" != "go2rtc" ] && [ "$stack_type" == "nvr_only" ]; then
1275+
# Skip IoT services if stack type is nvr_only (but keep mosquitto, influxdb, frigate, doubletake, compreface, and go2rtc)
1276+
# Mosquitto and InfluxDB are core infrastructure services needed by both IoT and NVR components
1277+
if [ "$SERVICE" != "mosquitto" ] && [ "$SERVICE" != "influxdb" ] && [ "$SERVICE" != "frigate" ] && [ "$SERVICE" != "doubletake" ] && [ "$SERVICE" != "compreface" ] && [ "$SERVICE" != "go2rtc" ] && [ "$stack_type" == "nvr_only" ]; then
12761278
echo "Skipping $SERVICE (IoT/SCADA not enabled in configuration)"
12771279
SERVICE_STATUS["${SERVICE}"]="SKIPPED (Not configured)"
12781280
continue

0 commit comments

Comments
 (0)