From e688768eda6d044386af64caab7a238916fb3fa5 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?J=C3=B6rg=20Sachse?= <joerg.sachse@slub-dresden.de>
Date: Mon, 9 Jan 2023 14:49:36 +0100
Subject: [PATCH] feat: check_ie_sample now accepts process IDs as CLI
 arguments, so we provide that (also, formatting)

---
 .../systemd/system/check_ie_sample.service.j2   | 17 ++++++++++++++++-
 1 file changed, 16 insertions(+), 1 deletion(-)

diff --git a/templates/usr/local/lib/systemd/system/check_ie_sample.service.j2 b/templates/usr/local/lib/systemd/system/check_ie_sample.service.j2
index 9a66b10..9371162 100644
--- a/templates/usr/local/lib/systemd/system/check_ie_sample.service.j2
+++ b/templates/usr/local/lib/systemd/system/check_ie_sample.service.j2
@@ -5,8 +5,23 @@ Documentation=perldoc /usr/local/bin/check_ie_sample.pl
 [Service]
 Type=oneshot
 Restart=no
-ExecStart=/usr/bin/perl -I /usr/local/perl /usr/local/bin/check_ie_sample.pl --institute {{ item.value.institute_name }} --email langzeitarchiv@slub-dresden.de --host {{ item.value.rosetta_host }}.slub-dresden.de --user {{ item.value.user }} --password {{ item.value.password }} --sampling_factor 0.0000274
 # Sampling factor = 1/100/365
+#ExecStart=/usr/bin/perl -I /usr/local/perl /usr/local/bin/check_ie_sample.pl \
+#	--institute {{ item.value.institute_name }} \
+#	--email langzeitarchiv@slub-dresden.de \
+#	--host {{ item.value.rosetta_host }}.slub-dresden.de \
+#	--user {{ item.value.user }} \
+#	--password {{ item.value.password }} \
+#	--sampling_factor 0.0000274 \
+#	--dead_reference {{ item.value.institute_dead_ref_process_id }}
+ExecStart=/usr/bin/perl -I /usr/local/perl /usr/local/bin/check_ie_sample.pl \
+	--institute {{ item.value.institute_name }} \
+	--email langzeitarchiv@slub-dresden.de \
+	--host {{ item.value.rosetta_host }}.slub-dresden.de \
+	--user {{ item.value.user }} \
+	--password {{ item.value.password }} \
+	--sampling_factor 0.0000274 \
+	--fixity_check {{ item.value.institute_fixity_check_process_id }}
 User={{ vault_subapp_user }}
 Group={{ vault_subapp_group }}
 
-- 
GitLab