#!/bin/bash

res=$(systemctl list-unit-files | grep 'aisexpert.service')
if [ -n "$res" ]; then
    systemctl stop    aisexpert.service
    systemctl disable aisexpert.service
fi

res=$(systemctl list-unit-files | grep 'userspool.service')
if [ -n "$res" ]; then
    systemctl stop    userspool.service
    systemctl disable userspool.service
fi

res=$(systemctl list-unit-files | grep 'aisexpert-notify.service')
if [ -n "$res" ]; then
    systemctl disable aisexpert-notify.service
fi

exit 0
