#!/bin/bash

SERVICE=draftbeerservice
systemctl is-active --quiet $SERVICE
if [ $? -eq 0 ] ; then # сервис запущен
    systemctl stop $SERVICE
fi
systemctl disable $SERVICE