summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorian Dold <florian@dold.me>2023-03-10 12:18:56 +0100
committerFlorian Dold <florian@dold.me>2023-03-10 12:18:56 +0100
commitce71db2c0b1a8dcc3021d2ba8549c31501c098b2 (patch)
tree3bf0dc30328c4295393c3fc21a84f5b5a940ea83
parent4931e309489e64884519bc7047db6218f8898c52 (diff)
downloadexchange-ce71db2c0b1a8dcc3021d2ba8549c31501c098b2.tar.gz
exchange-ce71db2c0b1a8dcc3021d2ba8549c31501c098b2.tar.bz2
exchange-ce71db2c0b1a8dcc3021d2ba8549c31501c098b2.zip
be more explicit in systemd unit file
m---------contrib/gana0
-rw-r--r--debian/taler-exchange.taler-exchange-httpd.service14
2 files changed, 11 insertions, 3 deletions
diff --git a/contrib/gana b/contrib/gana
-Subproject e2c325ca89b92aed98a30b23fd653b1adb9af68
+Subproject 1ec4596bf4925ee24fc06d3e74d2a553b823987
diff --git a/debian/taler-exchange.taler-exchange-httpd.service b/debian/taler-exchange.taler-exchange-httpd.service
index ea78048e2..3671bdc7d 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
-# No significant delay 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