mirror of
https://github.com/openbsd/ports.git
synced 2026-06-18 07:24:23 +02:00
a3b7319f29
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@
15 lines
316 B
Bash
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
|