#!/bin/sh -e

APP="memstore"

case "$1" in
    remove|purge)
        if [ -x /bin/systemctl -a -f /etc/systemd/system/yandex-solomon-${APP}.service ] ; then
            if ! /bin/systemctl stop yandex-solomon-${APP} ; then
                echo "Cannot restart ${APP} service!"
            fi
        fi
    ;;
esac
