1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-08 02:15:08 +00:00
freebsd-ports/sysutils/beats7/files/heartbeat.in
Tobias C. Berner ebc8e584cb sysutils/beats7: Update to 7.9.2
Changes since 7.9.1:
* Breaking changes
  - Affecting all Beats
        - Autodiscover doesn’t generate any configuration when a variable is
          missing. Previously it generated an incomplete configuration.
* Bugfixes
  - Affecting all Beats
        - Explicitly detect missing variables in autodiscover configuration,
          log them at the debug level.
        - Fix libbeat.output.write.bytes and libbeat.output.read.bytes metrics of
          the Elasticsearch output.
  - Filebeat
        - Provide backwards compatibility for the set processor when Elasticsearch is
          less than 7.9.0.
        - Fix an error updating file size being logged when EOF is reached.
        - Fix error when processing AWS Cloudtrail Digest logs.
  - Metricbeat
        - The Kibana collector applies backoff when errored at getting usage stats
        - The elasticsearch/index metricset only requests wildcard expansion for hidden
          indices if the monitored Elasticsearch cluster supports it.
        - Fix panic index out of range error when getting AWS account name.
        - Handle missing counters in the application_pool metricset.
  - Functionbeat
        - Do not need Google credentials if not required for the operation.
        - Fix dependency issues of GCP functions.
* Added
  - Affecting all Beats
        - Add container ECS fields in kubernetes metadata.

FreeBSD notes:
  - Fixed PRs:
    - bug #248499
    - bug #244627
    - bug #228785
  - Fix paths in various (mostly example) files

Release Notes:
	https://www.elastic.co/guide/en/beats/libbeat/current/release-notes-7.9.2.html

PR:		249912
Submitted by:	Juraj Lutter <juraj@lutter.sk>
2020-10-03 20:03:35 +00:00

46 lines
1.2 KiB
Bash

#!/bin/sh
# $FreeBSD$
# PROVIDE: heartbeat
# REQUIRE: DAEMON
# BEFORE: LOGIN
# KEYWORD: shutdown
# Add the following lines to /etc/rc.conf to enable heartbeat:
#
# heartbeat_enable (bool): Set to YES to enable heartbeat
# Default: NO
# heartbeat_flags (str): Extra flags passed to heartbeat
# heartbeat_config (str): heartbeat configuration directory
# Default: ${PREFIX}/etc/beats
# heartbeat_conffile (str): heartbeat configuration file
# relative to ${heartbeat_conf}
# Default: heartbeat.yml
. /etc/rc.subr
name="heartbeat"
rcvar=${name}_enable
load_rc_config $name
: ${heartbeat_enable:="NO"}
: ${heartbeat_config:="%%ETCDIR%%"}
: ${heartbeat_conffile:="heartbeat.yml"}
: ${heartbeat_home:="%%DATADIR%%/heartbeat"}
: ${heartbeat_logs:="/var/log/beats"}
: ${heartbeat_data:="/var/db/beats/heartbeat"}
# daemon
start_precmd=heartbeat_prestart
command=/usr/sbin/daemon
pidfile="/var/run/${name}"
command_args="-frP ${pidfile} %%PREFIX%%/sbin/${name} ${heartbeat_flags} --path.config ${heartbeat_config} --path.home ${heartbeat_home} --path.data ${heartbeat_data} --path.logs ${heartbeat_logs} -c ${heartbeat_conffile}"
heartbeat_prestart() {
# Have to empty rc_flags so they don't get passed to daemon(8)
rc_flags=""
}
run_rc_command "$1"