방법 1: 수동 실행 스크립트 ● Write(~/projects/hc900_ax/start.sh) ⎿  Wrote 45 lines to ../../../start.sh 1 #!/bin/bash 2 # HC900Crawler 시작 스크립트 3 # 사용: ./start.sh [--background] 4 5 PROJ=/home/windpacer/projects/hc900_ax 6 LOG=/tmp/hc900_crawler.log 7 8 # Docker 컨테이너 확인 9 echo "[1/3] Docker 컨테이너 확인..." 10 for NAME in iiot-timescaledb qdrant-index; do … +35 lines (ctrl+o to expand) ● Bash(chmod +x /home/windpacer/projects/hc900_ax/start.sh echo "완료") ⎿  완료 ⎿  Allowed by auto mode classifier ● 방법 2: systemd 자동 시작 (부팅 시 자동) ● Write(~/projects/hc900_ax/hc900crawler.service) ⎿  Wrote 26 lines to ../../../hc900crawler.service 1 [Unit] 2 Description=HC900 Crawler - Modbus to gRPC Web Service 3 After=network-online.target docker.service 4 Wants=network-online.target 5 6 [Service] 7 Type=simple 8 User=windpacer 9 WorkingDirectory=/home/windpacer/projects/hc900_ax/src/Hc900Crawler … +16 lines (ctrl+o to expand) ● --- 사용 방법 요약 수동 실행 (리부팅 후) # 포그라운드 (터미널 닫으면 종료) cd /home/windpacer/projects/hc900_ax ./start.sh # 백그라운드 (터미널 닫아도 유지) ./start.sh --background # 상태 확인 curl http://localhost:5000/api/setup/gateway/status systemd 등록 (부팅 시 자동 시작) # 서비스 파일 설치 sudo cp /home/windpacer/projects/hc900_ax/hc900crawler.service /etc/systemd/system/ # 등록 및 활성화 sudo systemctl daemon-reload sudo systemctl enable hc900crawler sudo systemctl start hc900crawler # 상태 확인 sudo systemctl status hc900crawler journalctl -u hc900crawler -f 정지/재시작 # 수동 실행의 경우 pkill -f Hc900Crawler # systemd의 경우 sudo systemctl stop hc900crawler sudo systemctl restart hc900crawler 로그 확인 tail -f /tmp/hc900_crawler.log # 크롤러 로그 tail -f /tmp/hc900_gateway.log # 게이트웨이 로그 --- C4 연결되면 — 게이트웨이가 알아서 30초 이내 자동 연결합니다. Setup 탭(http://localhost:5000)에서 상태를 실시간으로 확인할 수 있습니다.