diff --git a/templates/usr/local/lib/systemd/system/repair_daemon_digas.service.j2 b/templates/usr/local/lib/systemd/system/repair_daemon_digas.service.j2 index d982280e58f2e88068656ccf293fa7098fe3b9c9..d9af283df4dbd2ff2ab5c80b6a8af727ff2e3be6 100644 --- a/templates/usr/local/lib/systemd/system/repair_daemon_digas.service.j2 +++ b/templates/usr/local/lib/systemd/system/repair_daemon_digas.service.j2 @@ -3,6 +3,7 @@ Description=Repair Tool Daemon (DiGAS) After=network.target [Service] +ExecStartPre=/usr/bin/rm -f /home/{{ vault_service_user }}/.cache/SLUB_LZA_Reparaturtool.cache ExecStart=/usr/bin/perl -I/usr/lib/perl5 /usr/bin/repair_daemon.pl \ --sourcedir=/mnt/lza_repair_digas/unprocessed/ \ --targetdir=/mnt/lza_repair_digas/processed/ \ diff --git a/templates/usr/local/lib/systemd/system/repair_daemon_fotothek.service.j2 b/templates/usr/local/lib/systemd/system/repair_daemon_fotothek.service.j2 index c777be50c841b897742d103d575f9396ed329cb0..b5d34ad2934180ae7d38774eeb75430cfd3785a2 100644 --- a/templates/usr/local/lib/systemd/system/repair_daemon_fotothek.service.j2 +++ b/templates/usr/local/lib/systemd/system/repair_daemon_fotothek.service.j2 @@ -3,6 +3,7 @@ Description=Repair Tool Daemon (Fotothek) After=network.target [Service] +ExecStartPre=/usr/bin/rm -f /home/{{ vault_service_user }}/.cache/SLUB_LZA_Reparaturtool.cache ExecStart=/usr/bin/perl -I/usr/lib/perl5 /usr/bin/repair_daemon.pl \ --sourcedir=/mnt/lza_repair_fotothek/unprocessed/ \ --targetdir=/mnt/lza_repair_fotothek/processed/ \