17 lines
No EOL
478 B
Desktop File
17 lines
No EOL
478 B
Desktop File
[Unit]
|
|
Description=Video Query Service
|
|
After=network.target
|
|
|
|
[Service]
|
|
User=www-data
|
|
WorkingDirectory=/path/to/video_query/backend
|
|
ExecStart=/path/to/video_query/venv/bin/python run.py --port 5010
|
|
Restart=on-failure
|
|
# Extend timeouts for processing large videos
|
|
TimeoutStartSec=600
|
|
TimeoutStopSec=60
|
|
# EnvironmentFile directive tells systemd to read environment variables from the .env file
|
|
EnvironmentFile=/path/to/video_query/backend/.env
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target |