exchange

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

commit 5ac01822b6e4c46180017eaafc7dfbc472e53840
parent de9b2408fe95f1daab136dcf01bc96090ad4431d
Author: Christian Grothoff <christian@grothoff.org>
Date:   Sun, 10 Mar 2024 13:11:12 +0100

include timer for taler-exchange-offline

Diffstat:
Mdebian/rules | 1+
Adebian/taler-exchange-offline.taler-exchange-offline.service | 36++++++++++++++++++++++++++++++++++++
Adebian/taler-exchange-offline.taler-exchange-offline.timer | 20++++++++++++++++++++
3 files changed, 57 insertions(+), 0 deletions(-)

diff --git a/debian/rules b/debian/rules @@ -47,6 +47,7 @@ override_dh_installsystemd: dh_installsystemd -ptaler-exchange --name=taler-exchange-closer --no-start --no-enable dh_installsystemd -ptaler-auditor --name=taler-auditor-httpd --no-start --no-enable dh_installsystemd -ptaler-exchange --name=taler-exchange --no-start --no-enable + dh_installsystemd -ptaler-exchange-offline --name=taler-exchange-offline --no-start --no-enable # final invocation to generate daemon reload dh_installsystemd diff --git a/debian/taler-exchange-offline.taler-exchange-offline.service b/debian/taler-exchange-offline.taler-exchange-offline.service @@ -0,0 +1,36 @@ +# This file is in the public domain. +# +# This service is expected to be run via the respective +# timer to ensure that the keys and fees of the exchange +# are always current. +# +# You are expected to edit it to match your desired +# setup! +# +[Unit] +Description=Daily taler-exchange-offline run +Documentation=man:taler-exchange-offline(1) + +[Service] +Type=oneshot +User=taler-exchange-offline +StandardOutput=journal +StandardError=journal +PrivateTmp=yes +PrivateDevices=yes +Envirionment="FIAT_CURRENCY=CHF" +Envirionment="REGIO_CURRENCY=NETZBON" + +ExecStart=taler-exchange-offline \ + download \ + sign \ + wire-fee now \ + iban "${FIAT_CURRENCY}":0 "${FIAT_CURRENCY}":0 \ + wire-fee now \ + x-taler-bank "${REGIO_CURRENCY}":0 "${REGIO_CURRENCY}":0 \ + global-fee now \ + "${REGIO_CURRENCY}:0" \ + "${REGIO_CURRENCY}:0" \ + "${REGIO_CURRENCY}:0" + 4w 6y 4 \ + upload diff --git a/debian/taler-exchange-offline.taler-exchange-offline.timer b/debian/taler-exchange-offline.taler-exchange-offline.timer @@ -0,0 +1,20 @@ +# This file is in the public domain. +# +# Note that this timer is deliberately NOT active +# by default as it is ONLY applicable if the +# taler-exchange-offline tool is run on the *online* +# service and not actually offline. It is provided +# for convenience in setups that do not use offline +# signing. You may need to adjust the +# taler-exchange-offline.service file before using it! +[Unit] +Description=taler-exchange-offline maintenance +Documentation=man:taler-exchange-offline(1) + +[Timer] +OnCalendar=daily +AccuracySec=12h +Persistent=true + +[Install] +WantedBy=timers.target