Files
Panama/server/home/Media/compact-tv/compact-tv.service
T

18 lines
691 B
Desktop File

# Installed to /etc/systemd/system/. Runs as gib because the TV files are gib-owned,
# so the job needs no root. A system unit (rather than a user unit) because gib has
# no lingering session on this headless box. ExecStart goes through python3 because
# SELinux will not let systemd execute a file labeled as home content (user_home_t).
[Unit]
Description=Re-encode TV shows on Sonarr's Compact/Supercompact profiles
Documentation=file:///home/gib/Server/Media/compact-tv/README.md
After=docker.service
Requires=docker.service
[Service]
Type=oneshot
User=gib
Group=gib
ExecStart=/usr/bin/python3 /home/gib/Server/Media/compact-tv/compact-tv.py --until 08:00
Nice=15
IOSchedulingClass=idle