exchange

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

commit cba2a3e9aa35bc9563c63ace9e5cf00334f06f96
parent 993fc7022d668f547c619a62c80f2506faaaa787
Author: Christian Grothoff <christian@grothoff.org>
Date:   Fri, 23 Aug 2024 11:56:16 +0200

add slice and target for auditor

Diffstat:
Mdebian/taler-auditor.taler-auditor-httpd.service | 16++++++++++++++++
Adebian/taler-auditor.taler-auditor.slice | 7+++++++
Adebian/taler-auditor.taler-auditor.target | 15+++++++++++++++
Mdebian/taler-auditor.taler-helper-auditor-aggregation.service | 13+++++++++++++
Mdebian/taler-auditor.taler-helper-auditor-coins.service | 13+++++++++++++
Mdebian/taler-auditor.taler-helper-auditor-deposits.service | 13+++++++++++++
Mdebian/taler-auditor.taler-helper-auditor-purses.service | 12++++++++++++
Mdebian/taler-auditor.taler-helper-auditor-reserves.service | 13+++++++++++++
Mdebian/taler-auditor.taler-helper-auditor-wire-credit.service | 13+++++++++++++
Mdebian/taler-auditor.taler-helper-auditor-wire-debit.service | 13+++++++++++++
10 files changed, 128 insertions(+), 0 deletions(-)

diff --git a/debian/taler-auditor.taler-auditor-httpd.service b/debian/taler-auditor.taler-auditor-httpd.service @@ -1,13 +1,29 @@ [Unit] Description=GNU Taler payment system auditor REST API After=postgres.service network.target +PartOf=taler-auditor.target [Service] User=taler-auditor-httpd Type=simple Restart=on-failure RestartPreventExitStatus=9 + +# 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-auditor-httpd -c /etc/taler/taler.conf -L INFO +StandardOutput=journal +StandardError=journal +PrivateTmp=yes +PrivateDevices=yes +ProtectSystem=full +Slice=taler-auditor.slice + [Install] WantedBy=multi-user.target diff --git a/debian/taler-auditor.taler-auditor.slice b/debian/taler-auditor.taler-auditor.slice @@ -0,0 +1,7 @@ +[Unit] +Description=Slice for GNU taler auditor processes +Before=slices.target + +[Slice] +# Add settings that should affect all GNU Taler auditor +# components here. diff --git a/debian/taler-auditor.taler-auditor.target b/debian/taler-auditor.taler-auditor.target @@ -0,0 +1,15 @@ +[Unit] +Description=GNU Taler auditor +After=postgres.service network.target + +Wants=taler-auditor-httpd.service +Wants=taler-helper-auditor-aggregation.service +Wants=taler-helper-auditor-coins.service +Wants=taler-helper-auditor-deposits.service +Wants=taler-helper-auditor-purses.service +Wants=taler-helper-auditor-reserves.service +Wants=taler-helper-auditor-wire-credit.service +Wants=taler-helper-auditor-wire-debit.service + +[Install] +WantedBy=multi-user.target diff --git a/debian/taler-auditor.taler-helper-auditor-aggregation.service b/debian/taler-auditor.taler-helper-auditor-aggregation.service @@ -1,6 +1,7 @@ [Unit] Description=GNU Taler auditor helper checking aggregations 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 diff --git 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 diff --git a/debian/taler-auditor.taler-helper-auditor-deposits.service b/debian/taler-auditor.taler-helper-auditor-deposits.service @@ -1,6 +1,7 @@ [Unit] Description=GNU Taler auditor helper checking confirmation deposits 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 diff --git a/debian/taler-auditor.taler-helper-auditor-purses.service b/debian/taler-auditor.taler-helper-auditor-purses.service @@ -1,6 +1,7 @@ [Unit] Description=GNU Taler auditor helper checking purses After=postgres.service +Slice=taler-auditor.slice [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 diff --git a/debian/taler-auditor.taler-helper-auditor-reserves.service b/debian/taler-auditor.taler-helper-auditor-reserves.service @@ -1,6 +1,7 @@ [Unit] Description=GNU Taler auditor helper checking reserves 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 diff --git a/debian/taler-auditor.taler-helper-auditor-wire-credit.service b/debian/taler-auditor.taler-helper-auditor-wire-credit.service @@ -1,6 +1,7 @@ [Unit] Description=GNU Taler auditor helper checking for missing wire credit transfers 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 diff --git a/debian/taler-auditor.taler-helper-auditor-wire-debit.service b/debian/taler-auditor.taler-helper-auditor-wire-debit.service @@ -1,6 +1,7 @@ [Unit] Description=GNU Taler auditor helper checking outgoing wire debit operations 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