[Unit]
Description=Charter Account 2 Demo - Monthly Dashboard (parallel, port 5512)
After=network-online.target charter-v2-stats-dashboard.service

[Service]
Type=simple
User=charter
Group=charter
WorkingDirectory=/opt/charter-live/live_deploy_v2/v2_monthly_dashboard
Environment=PYTHONUNBUFFERED=1
Environment=PYTHONDONTWRITEBYTECODE=1
Environment=V2_MONTHLY_PORT=5512
Environment=V2_STATS_UPSTREAM=http://127.0.0.1:5511
EnvironmentFile=/opt/charter-live/live_deploy_v2/.v2_stats_creds
ExecStart=/opt/charter/venv/bin/python -u /opt/charter-live/live_deploy_v2/v2_monthly_dashboard/live_server.py
Restart=on-failure
RestartSec=10
TimeoutStopSec=20
NoNewPrivileges=true
PrivateTmp=true
ProtectSystem=strict
ProtectHome=true
StandardOutput=append:/opt/charter-live/live_deploy_v2/logs/v2_monthly_dashboard.out
StandardError=append:/opt/charter-live/live_deploy_v2/logs/v2_monthly_dashboard.err

[Install]
WantedBy=multi-user.target
