| [Unit] | |
| Description=Elizabeth AI Training Monitor | |
| After=network.target | |
| StartLimitIntervalSec=500 | |
| StartLimitBurst=5 | |
| [Service] | |
| Type=simple | |
| User=x | |
| Group=x | |
| WorkingDirectory=/workspace/elizabeth-repo | |
| ExecStart=/usr/bin/python3 /workspace/elizabeth-repo/scripts/training_monitor.py --start --max-restarts 20 --restart-delay 30 | |
| Restart=always | |
| RestartSec=10 | |
| Environment=PYTHONUNBUFFERED=1 | |
| Environment=HF_TOKEN= | |
| Environment=HUGGINGFACE_HUB_ENABLE_HF_TRANSFER=1 | |
| # Logging | |
| StandardOutput=journal | |
| StandardError=journal | |
| SyslogIdentifier=elizabeth-training | |
| # Security | |
| NoNewPrivileges=yes | |
| ProtectSystem=strict | |
| ProtectHome=yes | |
| PrivateTmp=yes | |
| [Install] | |
| WantedBy=multi-user.target |