aboutsummaryrefslogtreecommitdiff
path: root/debian
diff options
context:
space:
mode:
authorÖzgür Kesim <oec-taler@kesim.org>2023-03-11 11:51:02 +0100
committerÖzgür Kesim <oec-taler@kesim.org>2023-03-11 11:51:02 +0100
commit777a4c07cfa0eadfa37caaa6e100275bb21affaa (patch)
treead3c2f79102f5a825f9b89b2ba7ac73717bedb5a /debian
parente3d5672cbd8fdcbc7df9c52f90b7d639ad1675d9 (diff)
parentce71db2c0b1a8dcc3021d2ba8549c31501c098b2 (diff)
Merge branch 'master' into age-withdraw
Diffstat (limited to 'debian')
-rw-r--r--debian/taler-exchange.taler-exchange-httpd.service14
1 files changed, 11 insertions, 3 deletions
diff --git a/debian/taler-exchange.taler-exchange-httpd.service b/debian/taler-exchange.taler-exchange-httpd.service
index 98d76f6f..3671bdc7 100644
--- a/debian/taler-exchange.taler-exchange-httpd.service
+++ b/debian/taler-exchange.taler-exchange-httpd.service
@@ -8,11 +8,19 @@ PartOf=taler-exchange.target
[Service]
User=taler-exchange-httpd
Type=simple
-# Depending on the configuration, the service suicides and then
-# needs to be restarted.
+
+# Depending on the configuration, the service process kills itself and then
+# needs to be restarted. Thus no significant delay on restarts.
Restart=always
-# Do not dally on restarts.
RestartSec=1ms
+
+# 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
+
ExecStart=/usr/bin/taler-exchange-httpd -c /etc/taler/taler.conf
StandardOutput=journal
StandardError=journal