18 lines
365 B
Bash
18 lines
365 B
Bash
#!/usr/bin/env bash
|
|
set -euo pipefail
|
|
|
|
SCRIPT_DIR="$(CDPATH= cd -- "$(dirname -- "$0")" && pwd)"
|
|
# shellcheck disable=SC1091
|
|
source "$SCRIPT_DIR/common.sh"
|
|
|
|
if has_full_systemd_suite; then
|
|
stop_systemd_suite
|
|
stop_all_legacy_processes
|
|
echo "hy-app-monitor suite stopped"
|
|
exit 0
|
|
fi
|
|
|
|
stop_local_service gateway
|
|
stop_local_service yumi
|
|
stop_local_service haiyi
|