Files
kaoyan/deploy/kaoyan-proxy-scheduler.service

24 lines
578 B
Desktop File

[Unit]
Description=Kaoyan proxy-pool fetching and validation
After=network-online.target docker.service
Wants=network-online.target
Requires=docker.service
[Service]
User=kaoyan
Group=kaoyan
WorkingDirectory=/opt/kaoyan-studio-deploy/proxy_pool
Environment=MALLOC_ARENA_MAX=2
Environment=PROXY_CHECK_WORKERS=8
ExecStart=/opt/kaoyan-studio-deploy/proxy-venv/bin/python /opt/kaoyan-studio-deploy/app/deploy/proxy_scheduler.py
Restart=on-failure
RestartSec=10
TimeoutStopSec=120
UMask=0077
PrivateTmp=true
ProtectSystem=full
ProtectHome=true
[Install]
WantedBy=multi-user.target