90-netdata-runtime-check.sh 628 B

123456789101112131415161718192021222324
  1. #!/usr/bin/env bash
  2. # SPDX-License-Identifier: GPL-3.0-or-later
  3. # shellcheck source=./packaging/makeself/functions.sh
  4. . "${NETDATA_MAKESELF_PATH}"/functions.sh "${@}" || exit 1
  5. dump_log() {
  6. cat ./netdata.log
  7. }
  8. trap dump_log EXIT
  9. export NETDATA_LIBEXEC_PREFIX="${NETDATA_INSTALL_PATH}/usr/libexec/netdata"
  10. export NETDATA_SKIP_LIBEXEC_PARTS="freeipmi|xenstat|cups"
  11. if [ "$(uname -m)" != "x86_64" ]; then
  12. export NETDATA_SKIP_LIBEXEC_PARTS="${NETDATA_SKIP_LIBEXEC_PARTS}|ebpf"
  13. fi
  14. "${NETDATA_INSTALL_PATH}/bin/netdata" -D > ./netdata.log 2>&1 &
  15. "${NETDATA_SOURCE_PATH}/packaging/runtime-check.sh" || exit 1
  16. trap - EXIT