taler-exchange-offline.taler-exchange-offline.service (838B)
1 # This file is in the public domain. 2 # 3 # This service is expected to be run via the respective 4 # timer to ensure that the keys and fees of the exchange 5 # are always current. 6 # 7 # You are expected to edit it to match your desired 8 # setup! 9 # 10 [Unit] 11 Description=Daily taler-exchange-offline run 12 Documentation=man:taler-exchange-offline(1) 13 14 [Service] 15 Type=oneshot 16 User=taler-exchange-offline 17 StandardOutput=journal 18 StandardError=journal 19 PrivateTmp=yes 20 PrivateDevices=yes 21 22 Environment="REGIO_CURRENCY=$(taler-exchange-config -s exchange -o CURRENCY)" 23 ExecStart=bash -c 'taler-exchange-offline download sign wire-fee now iban "${REGIO_CURRENCY}":0 "${REGIO_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" 4weeks 6years 4 upload'