Add standalone "Tipy dne" script with systemd service and timer
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user