3 export PATH="${PATH}:/sbin:/usr/sbin:/usr/local/sbin"
5 NETDATA_CONFIG_DIR="${NETDATA_CONFIG_DIR-/etc/netdata}"
6 CONFIG="${NETDATA_CONFIG_DIR}/cgroups-names.conf"
12 echo >&2 "${0}: called without a cgroup name. Nothing to do."
18 NAME="$(cat "${CONFIG}" | grep "^${CGROUP}" | cut -d ' ' -f 2)"
21 echo >&2 "${0}: cannot find cgroup '${CGROUP}' in '${CONFIG}'."
24 echo >&2 "${0}: configuration file '${CONFIG}' is not available."
29 if [ ${#CGROUP} -gt 12 ]
37 echo >&2 "${0}: cgroup '${CGROUP}' is named as '${NAME}'"