aboutsummaryrefslogtreecommitdiff
path: root/debian/taler-exchange-offline.taler-exchange-offline.service
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2024-03-10 13:11:12 +0100
committerChristian Grothoff <christian@grothoff.org>2024-03-10 13:11:12 +0100
commit5ac01822b6e4c46180017eaafc7dfbc472e53840 (patch)
tree9ac4a6acb4dac48676dd6c1daf028a2f1882dd17 /debian/taler-exchange-offline.taler-exchange-offline.service
parentde9b2408fe95f1daab136dcf01bc96090ad4431d (diff)
downloadexchange-5ac01822b6e4c46180017eaafc7dfbc472e53840.tar.xz
include timer for taler-exchange-offline
Diffstat (limited to 'debian/taler-exchange-offline.taler-exchange-offline.service')
-rw-r--r--debian/taler-exchange-offline.taler-exchange-offline.service36
1 files changed, 36 insertions, 0 deletions
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 000000000..773922743
--- /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