diff options
author | Christian Grothoff <christian@grothoff.org> | 2024-03-10 13:11:12 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2024-03-10 13:11:12 +0100 |
commit | 5ac01822b6e4c46180017eaafc7dfbc472e53840 (patch) | |
tree | 9ac4a6acb4dac48676dd6c1daf028a2f1882dd17 /debian | |
parent | de9b2408fe95f1daab136dcf01bc96090ad4431d (diff) |
include timer for taler-exchange-offline
Diffstat (limited to 'debian')
-rwxr-xr-x | debian/rules | 1 | ||||
-rw-r--r-- | debian/taler-exchange-offline.taler-exchange-offline.service | 36 | ||||
-rw-r--r-- | debian/taler-exchange-offline.taler-exchange-offline.timer | 20 |
3 files changed, 57 insertions, 0 deletions
diff --git a/debian/rules b/debian/rules index b957c81ac..6bdc2edd1 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 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 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 000000000..5e605e818 --- /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 |