32 lines
654 B
Desktop File
32 lines
654 B
Desktop File
[Unit]
|
|
Description=TTVDrops watch and import drops from pending directory
|
|
After=network-online.target
|
|
Wants=network-online.target
|
|
|
|
[Service]
|
|
Type=simple
|
|
User=ttvdrops
|
|
Group=ttvdrops
|
|
WorkingDirectory=/home/ttvdrops/ttvdrops
|
|
EnvironmentFile=/home/ttvdrops/ttvdrops/.env
|
|
ExecStart=/usr/bin/uv run python manage.py watch_imports /mnt/fourteen/Data/Responses/pending --verbose
|
|
|
|
# Restart policy
|
|
Restart=on-failure
|
|
RestartSec=5s
|
|
|
|
# Process management
|
|
KillMode=mixed
|
|
KillSignal=SIGTERM
|
|
|
|
# Resource limits
|
|
MemoryLimit=512M
|
|
CPUQuota=50%
|
|
|
|
# Logging
|
|
StandardOutput=journal
|
|
StandardError=journal
|
|
SyslogIdentifier=ttvdrops-watch
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|