File size: 665 Bytes
a7ae6b9 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 | [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 |