diff --git a/spk/activebackup-prometheus-exporter/Makefile b/spk/activebackup-prometheus-exporter/Makefile index 874471a9b7e3..4269b5d4d9fe 100644 --- a/spk/activebackup-prometheus-exporter/Makefile +++ b/spk/activebackup-prometheus-exporter/Makefile @@ -16,5 +16,6 @@ HOMEPAGE = https://github.com/codemonauts/activebackup-prometheus-exporter LICENSE = MIT SERVICE_SETUP = src/service-setup.sh +SERVICE_PORT=9763 include ../../mk/spksrc.spk.mk diff --git a/spk/activebackup-prometheus-exporter/src/service-setup.sh b/spk/activebackup-prometheus-exporter/src/service-setup.sh index 778088673f92..fe8a6e59a95b 100644 --- a/spk/activebackup-prometheus-exporter/src/service-setup.sh +++ b/spk/activebackup-prometheus-exporter/src/service-setup.sh @@ -1,5 +1,4 @@ AB_EXPORTER="${SYNOPKG_PKGDEST}/bin/activebackup-prometheus-exporter" -SERVICE_COMMAND="${AB_EXPORTER}" -SERVICE_PORT=9763 +SERVICE_COMMAND="${AB_EXPORTER} -port ${SERVICE_PORT}" SVC_BACKGROUND=y SVC_WRITE_PID=y