Add standalone "Tipy dne" script with systemd service and timer

This commit is contained in:
2026-06-29 16:31:29 +02:00
parent ee99fc957d
commit b5c2023212
5 changed files with 179 additions and 1 deletions
+27
View File
@@ -0,0 +1,27 @@
# systemd oneshot service for the standalone "Tipy dne" generator.
# Runs scripts/tipy_dne.py once; schedule it with the matching tipy-dne.timer.
#
# Install (as root):
# cp scripts/tipy_dne.py /opt/curator/tipy_dne.py
# cp scripts/tipy-dne.service scripts/tipy-dne.timer /etc/systemd/system/
# # edit User/paths below to match the server, then:
# systemctl daemon-reload
# systemctl enable --now tipy-dne.timer
# systemctl start tipy-dne.service # run once now to test
#
# Adjust: User/Group, the script path, and --pool / --output to your server.
[Unit]
Description=Generate the "Tipy dne" Filmotéka folder
After=local-fs.target remote-fs.target
[Service]
Type=oneshot
User=honza
Group=honza
ExecStart=/usr/bin/python3 /opt/curator/tipy_dne.py \
--pool /mnt/RHD-SRV2/Filmoteka \
--output /mnt/RHD-SRV2/Filmy/Filmoteka_v2 \
--count 15
Nice=10
NoNewPrivileges=true