exchange

Base system with REST service to issue digital coins, run by the payment service provider
Log | Files | Refs | Submodules | README | LICENSE

commit 50d1d428fe3bdb839172891a2a299b9581e381e7
parent 1d0b1e763713e1802a61278ca0e22b91f785eeb1
Author: Christian Grothoff <christian@grothoff.org>
Date:   Tue, 24 Dec 2024 22:23:37 +0100

use socket activation also for auditor

Diffstat:
Mdebian/taler-auditor.taler-auditor-httpd.service | 6+++++-
Adebian/taler-auditor.taler-auditor-httpd.socket | 14++++++++++++++
Mdebian/taler-auditor.tmpfiles | 2+-
3 files changed, 20 insertions(+), 2 deletions(-)

diff --git a/debian/taler-auditor.taler-auditor-httpd.service b/debian/taler-auditor.taler-auditor-httpd.service @@ -1,12 +1,16 @@ [Unit] Description=GNU Taler payment system auditor REST API +AssertPathExists=/run/taler-auditor/httpd +Requires=taler-exchange-httpd.socket After=postgres.service network.target PartOf=taler-auditor.target [Service] User=taler-auditor-httpd Type=simple -Restart=on-failure +Restart=always +RestartMode=direct +RestartSec=1ms RestartPreventExitStatus=9 # Disable the service if more than 5 restarts are encountered within 5s. diff --git a/debian/taler-auditor.taler-auditor-httpd.socket b/debian/taler-auditor.taler-auditor-httpd.socket @@ -0,0 +1,14 @@ +[Unit] +Description=Taler Auditor Socket +PartOf=taler-auditor-httpd.service + +[Socket] +ListenStream=/run/taler-auditor/httpd/auditor-http.sock +Accept=no +Service=taler-auditor-httpd.service +SocketUser=taler-auditor-httpd +SocketGroup=www-data +SocketMode=0660 + +[Install] +WantedBy=sockets.target diff --git a/debian/taler-auditor.tmpfiles b/debian/taler-auditor.tmpfiles @@ -1,2 +1,2 @@ #Type Path Mode UID GID Age Argument -d /run/taler-auditor/auditor-httpd 0750 taler-auditor-httpd www-data - - +d /run/taler-auditor/httpd 0750 taler-auditor-httpd www-data - -