#!/bin/sh -e

SOLOMON_ROOT="/Berkanavt/solomon"

APP="stockpile"
APP_ROOT="${SOLOMON_ROOT}/${APP}"

case "$1" in
    remove|purge)
        if ! /bin/systemctl stop yandex-solomon-${APP} ; then
            echo "Cannot stop ${APP} service!"
        fi
        if ! /bin/systemctl disable yandex-solomon-${APP} ; then
            echo "Cannot disable ${APP} service!"
        fi
    ;;
esac
