Files
claudio a3b7319f29 Update to 2.37.9 the last release in this LTS branch.
While doing this fix two bits in the port:
- allow the rc.d script to reload prometheus (via SIGHUP)
- fix the embedded version info by adjusting the module paths
  because the built is done using vendor-ed modules

OK sthen@
2023-09-06 10:28:49 +00:00

15 lines
316 B
Bash

#!/bin/ksh
daemon="${TRUEPREFIX}/bin/prometheus"
daemon_flags="--config.file ${SYSCONFDIR}/prometheus/prometheus.yml"
daemon_flags="${daemon_flags} --storage.tsdb.path '${LOCALSTATEDIR}/prometheus'"
daemon_logger="daemon.info"
daemon_user="_prometheus"
. /etc/rc.d/rc.subr
pexp="${daemon}.*"
rc_bg=YES
rc_cmd $1