aboutsummaryrefslogtreecommitdiff
path: root/debian/taler-auditor.taler-helper-auditor-coins.service
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2024-08-23 11:56:16 +0200
committerChristian Grothoff <christian@grothoff.org>2024-08-23 11:56:16 +0200
commitcba2a3e9aa35bc9563c63ace9e5cf00334f06f96 (patch)
tree6eecdd6668f13ae2eb01ec86a1cc7bc364da96e7 /debian/taler-auditor.taler-helper-auditor-coins.service
parent993fc7022d668f547c619a62c80f2506faaaa787 (diff)
add slice and target for auditor
Diffstat (limited to 'debian/taler-auditor.taler-helper-auditor-coins.service')
-rw-r--r--debian/taler-auditor.taler-helper-auditor-coins.service12
1 files changed, 12 insertions, 0 deletions
diff --git a/debian/taler-auditor.taler-helper-auditor-coins.service b/debian/taler-auditor.taler-helper-auditor-coins.service
index 86fbb364b..1c6f02de2 100644
--- a/debian/taler-auditor.taler-helper-auditor-coins.service
+++ b/debian/taler-auditor.taler-helper-auditor-coins.service
@@ -1,6 +1,7 @@
[Unit]
Description=GNU Taler auditor helper checking coin histories
After=postgres.service
+PartOf=taler-auditor.target
[Service]
User=taler-auditor-httpd
@@ -13,3 +14,14 @@ PrivateTmp=yes
PrivateDevices=yes
ProtectSystem=full
RuntimeMaxSec=3600s
+
+StandardOutput=journal
+StandardError=journal
+Slice=taler-auditor.slice
+
+# Disable the service if more than 5 restarts are encountered within 5s.
+# These are usually the systemd defaults, but can be overwritten, thus we set
+# them here explicitly, as the exchange code assumes StartLimitInterval
+# to be >=5s.
+StartLimitBurst=5
+StartLimitInterval=5s \ No newline at end of file