Update 2025-12-19 20:23:59

This commit is contained in:
unknown
2025-12-19 20:23:59 +09:00
parent b37c43ab86
commit 9d5d2b8d99
22 changed files with 1302 additions and 472 deletions

29
idrac-info.service Normal file
View File

@@ -0,0 +1,29 @@
[Unit]
Description=iDRAC Info Web Service
After=network.target
[Service]
# 실행할 사용자 (보안을 위해 root 대신 전용 계정 권장, 예: idrac)
User=root
Group=root
# 프로젝트 루트 디렉토리 (서버 환경에 맞게 수정 필요)
WorkingDirectory=/data/app/idrac_info_new
# 가상환경의 python 실행 및 app.py 호출
# ExecStart=<python_path> <script_path>
ExecStart=/bin/bash -c '/data/app/idrac_info_new/venv/bin/python /data/app/idrac_info_new/app.py'
# 환경 변수 설정 (필요 시 수정)
Environment="FLASK_HOST=0.0.0.0"
Environment="FLASK_PORT=5000"
Environment="FLASK_DEBUG=false"
# Werkzeug 리로더 끄기 (프로덕션 모드) - Systemd에서는 이 설정이 오히려 오류(KeyError)를 유발하므로 제거
# Environment="WERKZEUG_RUN_MAIN=true"
# 프로세스 종료 시 자동 재시작
Restart=always
RestartSec=5
[Install]
WantedBy=multi-user.target