[Unit]
Description=HC900 Crawler - Modbus to gRPC Web Service
After=network-online.target docker.service
Wants=network-online.target

[Service]
Type=simple
User=windpacer
WorkingDirectory=/home/windpacer/projects/hc900_ax/src/Hc900Crawler

# dotnet publish된 바이너리 사용 (권장) 또는 dotnet run
ExecStart=/usr/bin/dotnet run

Restart=always
RestartSec=10

# 로그
StandardOutput=append:/tmp/hc900_crawler.log
StandardError=append:/tmp/hc900_crawler.log

# 환경변수
Environment=DOTNET_ENVIRONMENT=Production
Environment=ASPNETCORE_URLS=http://0.0.0.0:5000

[Install]
WantedBy=multi-user.target
