This repository was archived by the owner on Jan 7, 2026. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +22
-121
lines changed
Expand file tree Collapse file tree 2 files changed +22
-121
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -1179,6 +1179,28 @@ setup_system() {
11791179 fi
11801180 echo " "
11811181 echo " To change your stack configuration, delete ${CONFIG_FILE} and run ./startup.sh again"
1182+
1183+ # Check if the systemd service is installed and warn if not
1184+ SERVICE_NAME=" iot-scada-stack"
1185+ SYSTEMD_USER_DIR=" ${HOME} /.config/systemd/user"
1186+ SERVICE_FILE=" ${SYSTEMD_USER_DIR} /${SERVICE_NAME} .service"
1187+
1188+ if [ ! -f " ${SERVICE_FILE} " ]; then
1189+ echo " "
1190+ echo " ================================================================"
1191+ echo " IMPORTANT NOTICE "
1192+ echo " ================================================================"
1193+ echo " The systemd service is NOT installed."
1194+ echo " Containers may stop when you disconnect from SSH!"
1195+ echo " "
1196+ echo " To ensure services persist after SSH logout, run:"
1197+ echo " ./install-service.sh install"
1198+ echo " "
1199+ echo " This will:"
1200+ echo " - Enable automatic startup on system boot"
1201+ echo " - Keep containers running after SSH disconnection"
1202+ echo " ================================================================"
1203+ fi
11821204}
11831205
11841206# --- Full Breakdown function: Containers and SMB share ---
You can’t perform that action at this time.
0 commit comments