[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[taler-exchange] branch master updated: include timer for taler-exchange
From: |
gnunet |
Subject: |
[taler-exchange] branch master updated: include timer for taler-exchange-offline |
Date: |
Sun, 10 Mar 2024 13:11:16 +0100 |
This is an automated email from the git hooks/post-receive script.
grothoff pushed a commit to branch master
in repository exchange.
The following commit(s) were added to refs/heads/master by this push:
new 5ac01822 include timer for taler-exchange-offline
5ac01822 is described below
commit 5ac01822b6e4c46180017eaafc7dfbc472e53840
Author: Christian Grothoff <christian@grothoff.org>
AuthorDate: Sun Mar 10 13:11:12 2024 +0100
include timer for taler-exchange-offline
---
debian/rules | 1 +
...exchange-offline.taler-exchange-offline.service | 36 ++++++++++++++++++++++
...r-exchange-offline.taler-exchange-offline.timer | 20 ++++++++++++
3 files changed, 57 insertions(+)
diff --git a/debian/rules b/debian/rules
index b957c81a..6bdc2edd 100755
--- 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
new file mode 100644
index 00000000..77392274
--- /dev/null
+++ 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
new file mode 100644
index 00000000..5e605e81
--- /dev/null
+++ 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
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [taler-exchange] branch master updated: include timer for taler-exchange-offline,
gnunet <=