28 lines
896 B
Desktop File
28 lines
896 B
Desktop File
# 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
|