Files
managed-portal/managed/store_dwell_alert/docs/plans/2026-04-16-service-autostart.md
2026-04-27 10:04:36 +08:00

1.0 KiB

Service Autostart Implementation Plan

Goal: Make both store_dwell_alert_108 and people_flow_project install into a systemd-managed service that starts immediately after install and automatically starts on boot.

Scope:

  • Add dependency checks and auto-install for lightweight system packages.
  • Generate local runtime config from editable script variables.
  • Install and start systemd services from project-local templates.
  • Add Chinese README files to both projects.
  • Rebuild distributable archives after the changes.

Execution Steps:

  1. Update store_dwell_alert_108 scripts to auto-install missing system packages, prepare config, install service, and enable --now.
  2. Add a dedicated Chinese deployment README to store_dwell_alert_108.
  3. Refactor people_flow_project to use a generated local config, a foreground run.sh, and a systemd service template.
  4. Add a dedicated Chinese deployment README to people_flow_project.
  5. Validate script and Python entrypoint behavior.
  6. Rebuild both project archives.