summaryrefslogtreecommitdiff
path: root/launch_mint.sh
blob: d730114cc709ff33152d5f53942a417d64273761 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/bin/bash

set -eu

ulimit -c unlimited

pids=$(pidof taler-mint-httpd || true)
if [[ ! -z "$pids" ]]; then
	kill $pids || true
	sleep 1
	kill -9 $pids || true
fi

echo launching mint

cd $HOME

nohup $HOME/local/bin/taler-mint-httpd -d $HOME/mint_config | tee $HOME/nohup.mint.out &
disown