#!/bin/bash

if pg_isready -q; then
    service postgresql stop
fi

pkill bloodhound