HIRS/package/linux/systemd/aca_disable_service.sh

19 lines
568 B
Bash
Raw Normal View History

2024-03-18 16:32:30 +00:00
#!/bin/bash
#####################################################################################
#
# Script to remove the ACA service when running as a service if not running in a container
#
#####################################################################################
SCRIPT_DIR=$( dirname -- "$( readlink -f -- "$0"; )"; )
pushd $SCRIPT_DIR > /dev/null
source ../db/mysql_util.sh
check_systemd
if [ $SYSD_SERVICE = true ]; then
systemctl stop hirs-aca
systemctl disable hirs-aca.service
systemctl reset-failed hirs-aca
fi
popd > /dev/null