mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-04-05 05:57:14 +02:00
also clean up the init.d files and remove the maintainer (never committed anything except the initial commit) closes #14780
31 lines
620 B
Bash
31 lines
620 B
Bash
#!/sbin/openrc-run
|
|
|
|
name=metricbeat
|
|
description="MetricBeat - Lightweight shipper for system and service statistics"
|
|
command=/usr/bin/metricbeat
|
|
command_args="$metricbeat_opts"
|
|
command_background=true
|
|
pidfile=/run/${RC_SVCNAME}.pid
|
|
output_log=/var/log/${RC_SVCNAME}.log
|
|
error_log=/var/log/${RC_SVCNAME}.log
|
|
|
|
extra_commands="checkconfig"
|
|
description_checkconfig="Verify configuration file"
|
|
|
|
start_pre() {
|
|
checkpath -f -m 0644 "$output_log"
|
|
}
|
|
|
|
depend() {
|
|
need net
|
|
after firewall
|
|
}
|
|
|
|
checkconfig() {
|
|
$command test config -c /etc/metricbeat/metricbeat.yml
|
|
}
|
|
|
|
start_pre() {
|
|
ebegin "checking configuration"
|
|
checkconfig
|
|
}
|