[Unit]
Description=MOMO Pro System Startup Service
After=docker.service network-online.target
Wants=docker.service network-online.target
Requires=docker.service

[Service]
Type=oneshot
RemainAfterExit=yes
WorkingDirectory=/home/wooo/momo_pro_system
ExecStartPre=/bin/sleep 30
ExecStart=/home/wooo/momo_pro_system/scripts/tools/system_startup.sh
TimeoutStartSec=600
StandardOutput=journal
StandardError=journal

# 環境變數（可選，用於 Telegram 通知）
Environment="TELEGRAM_BOT_TOKEN=<TELEGRAM_BOT_TOKEN>"
Environment="TELEGRAM_CHAT_ID=5619078117"

[Install]
WantedBy=multi-user.target
