mirror of
https://github.com/hanzoai/metrics.git
synced 2026-10-30 20:03:39 +00:00
* Update to OpenBSD 6.9 and VictoriaMetrics 1.58 While at it, also build vmagent * Bump to v1.59 and remove zstd dependency
23 lines
429 B
Bash
23 lines
429 B
Bash
#!/bin/sh
|
|
#
|
|
# $OpenBSD$
|
|
|
|
daemon="${TRUEPREFIX}/bin/vmetrics"
|
|
daemon_flags="-storageDataPath=/var/db/vmetrics/ ${daemon_flags}"
|
|
daemon_user=_vmetrics
|
|
|
|
. /etc/rc.d/rc.subr
|
|
|
|
pexp="${daemon} -loggerDisableTimestamps ${daemon_flags}.*"
|
|
rc_bg=YES
|
|
rc_reload=NO
|
|
|
|
me=`basename $0`
|
|
|
|
rc_start() {
|
|
${rcexec} "${daemon} -loggerDisableTimestamps ${daemon_flags} \
|
|
< /dev/null 2>&1 | ${TRUEPREFIX}/bin/vmetricslogger.pl $me"
|
|
}
|
|
|
|
rc_cmd $1
|