#!/bin/bash set -eu ulimit -c unlimited pids=$(pidof taler-merchant-httpd || true) if [[ ! -z "$pids" ]]; then kill $pids || true sleep 1 fi pids=$(pidof taler-merchant-httpd || true) if [[ ! -z "$pids" ]]; then kill -9 $pids || true fi echo launching merchant cd $HOME nohup $HOME/local/bin/taler-merchant-httpd -t -c $HOME/merchant.conf | tee $HOME/nohup.merchant.out & disown echo "Merchant PID:" $(pgrep -a -U $(whoami) taler-merchant)