#!/bin/bash

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

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

sleep 2

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

exit 0
