vcmp timer task

This commit is contained in:
2025-01-26 16:29:08 +01:00
parent 817b52bc50
commit fa07d67a14
5 changed files with 44 additions and 0 deletions
+1
View File
@@ -1,2 +1,3 @@
host_packages:
- ffmpeg
- python3-psutil
+6
View File
@@ -71,3 +71,9 @@
remote_user: nerevar
tasks:
- import_tasks: tasks/tmux.yml
- name: vcmp timer
hosts: talos
become: true
remote_user: nerevar
tasks:
- import_tasks: tasks/vcmp_timer.yml
+13
View File
@@ -0,0 +1,13 @@
[Unit]
Description=Nocturnal Video compression
[Service]
ExecStart=/opt/scripts/bin/vcmp -s /mnt/nocturnal/local/downloads/ -d /mnt/nocturnal/share/downloads/ -n 20
Type=oneshot
RemainAfterExit=no
TimeoutStartSec=0
IOSchedulingClass=idle
CPUSchedulingPolicy=idle
CPUSchedulingPriority=0
RestrictRealtime=yes
Restart=no
+9
View File
@@ -0,0 +1,9 @@
[Unit]
Description=Nocturnal vcmp timer
[Timer]
OnBootSec=5min
OnUnitActiveSec=5min
[Install]
WantedBy=timers.target
+15
View File
@@ -0,0 +1,15 @@
- name: Copy vcmp service files
copy:
src: "{{ item }}"
dest: /etc/systemd/system/
mode: 0644
with_items:
- vcmp/vcmp.service
- vcmp/vcmp.timer
- name: Enable vcmp timer
systemd:
name: vcmp.timer
enabled: yes
state: started
daemon_reload: yes