update/patch-scripts/EXAMPLE_MTCE/scripts/mtce-restart-example
Eric MacDonald eca8e103b6 Remove Resource Monitor ; aka rmon, from the load
All rmon resource monitoring has been moved to collectd.

This update removes rmon from mtce and the load.

Story: 2002823
Task: 30045

Test Plan:
PASS: Build and install a standard system.
PASS: Inspect mtce rpm list
PASS: Inspect logs
PASS: Check pmon.d

Depends-On: https://review.openstack.org/#/c/643739
Change-Id: I1cee4a534171b3c5fa93f3cbc04beaeaf744d161
Signed-off-by: Eric MacDonald <eric.macdonald@windriver.com>
2019-03-17 11:45:33 -04:00

47 lines
1.1 KiB
Bash

#!/bin/bash
#
# Copyright (c) 2016 Wind River Systems, Inc.
#
# SPDX-License-Identifier: Apache-2.0
#
#
# This script provides an example in-service patching restart for all maintenance processes
#
#
# The patching subsystem provides a patch-functions bash source file
# with useful function and variable definitions.
#
. /etc/patching/patch-functions
#
# We can now check to see what type of node we're on, if it's locked, etc,
# and act accordingly
#
#
# Declare an overall script return code
#
declare -i GLOBAL_RC=$PATCH_STATUS_OK
# NOTE: The following restart example code could be implemented in scripts
# owned by the various domains, with a single high-level call in the patch-script.
# This would be the preferred method, in fact, to ensure the patch-scripts
# themselves are simple and clean.
#
/usr/local/sbin/patch-restart-mtce \
mtcalarmd mtclogd \
hbsAgent hbsClient \
mtcAgent mtcClient \
pmond fsmond hwmond hostwd lmond \
guestServer guestAgent
if [ $? -ne 0 ] ; then
GLOBAL_RC=$PATCH_STATUS_FAILED
fi
# Exit the script with the overall return code
#
exit $GLOBAL_RC