diff options
| author | Christian Grothoff <christian@grothoff.org> | 2020-02-11 15:40:37 +0100 |
|---|---|---|
| committer | Christian Grothoff <christian@grothoff.org> | 2020-02-11 15:40:37 +0100 |
| commit | 3ad698d01865c9f1b5c5aadc2f4d8b0a3658b81c (patch) | |
| tree | 671de5acc0a13cafe636bf1e220496a5882a8b74 /contrib/taler-exchange-revoke | |
| parent | de0d987e34d426f6ed3593840078442191255587 (diff) | |
| parent | cdaf1ce69b5fb56f09bbdc00942b03f039710614 (diff) | |
merging
Diffstat (limited to 'contrib/taler-exchange-revoke')
| -rwxr-xr-x | contrib/taler-exchange-revoke | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/contrib/taler-exchange-revoke b/contrib/taler-exchange-revoke new file mode 100755 index 00000000..8e4bc6ed --- /dev/null +++ b/contrib/taler-exchange-revoke @@ -0,0 +1,24 @@ +#!/bin/sh +# This file is in the public domain +# +# Used to first revoke a key and then restart the exchange +# to ensure it notices the revocation. +# +# Takes 2 arguments: +# $1: the configuration file name +# $2: the denomination key hash (DKH) of the denomination to revoke + +set -eu + +if [ "$#" -ne 2 ]; +then + echo "illegal number of parameters" + exit 1 +fi + +taler-exchange-keyup -c $1 -r $2 + +EXCHANGE_PID=`ps x | grep taler-exchange-httpd | awk '{print $1}'` +kill -SIGUSR1 $EXCHANGE_PID + +exit 0 |
