16 lines
407 B
SYSTEMD
16 lines
407 B
SYSTEMD
[Unit]
|
|
Description=Huggingface Proxy Upkeep Daemon
|
|
After=network.target
|
|
StartLimitIntervalSec=0
|
|
|
|
[Service]
|
|
User=server
|
|
Group=server
|
|
Type=simple
|
|
ExecStart=/srv/server/huggingface-proxy/venv/bin/python3 /srv/server/huggingface-proxy/keepalive.py --token hf_XXX --username example --cookies /srv/server/huggingface-proxy/cookies.txt --headless
|
|
Restart=always
|
|
RestartSec=3
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|