34 lines
772 B
Desktop File
34 lines
772 B
Desktop File
[Unit]
|
|
Description=Isolated Real-ESRGAN video upscale API
|
|
After=network-online.target
|
|
Wants=network-online.target
|
|
|
|
[Service]
|
|
Type=simple
|
|
User=video-upscale
|
|
Group=video-upscale
|
|
WorkingDirectory=/opt/video-upscale/app
|
|
EnvironmentFile=/etc/video-upscale.env
|
|
Environment=CUDA_VISIBLE_DEVICES=3
|
|
Environment=OMP_NUM_THREADS=4
|
|
Environment=OPENBLAS_NUM_THREADS=4
|
|
Environment=MKL_NUM_THREADS=4
|
|
Environment=UPSCALE_PYTHON=/opt/video-upscale/venv/bin/python
|
|
ExecStart=/usr/bin/node /opt/video-upscale/app/server.cjs
|
|
Restart=on-failure
|
|
RestartSec=5
|
|
KillMode=mixed
|
|
TimeoutStopSec=15
|
|
UMask=0077
|
|
NoNewPrivileges=true
|
|
ProtectSystem=strict
|
|
ProtectHome=true
|
|
PrivateTmp=true
|
|
ReadWritePaths=/var/lib/video-upscale
|
|
MemoryMax=8G
|
|
CPUQuota=400%
|
|
TasksMax=256
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|