~dricottone/huttese-apk

52d4617bbcb0b9869b4f7df44f56621bf96c1fad — Drew DeVault 5 years ago 34b6381
Update meta.sr.ht for prometheus support
2 files changed, 6 insertions(+), 6 deletions(-)

M sr.ht/meta.sr.ht/meta.sr.ht.init
M sr.ht/meta.sr.ht/meta.sr.ht.post-install
M sr.ht/meta.sr.ht/meta.sr.ht.init => sr.ht/meta.sr.ht/meta.sr.ht.init +4 -4
@@ 3,7 3,7 @@ name="meta.sr.ht"
description="meta.sr.ht service"

# Override these with /etc/conf.d/meta.sr.ht
META_USER=${META_USER:-metasrht}
META_USER=${META_USER:-meta}
META_BIND=${META_BIND:-127.0.0.1:5000}
LOCAL_PG=${LOCAL_PG:-yes}
LOGS=/var/log/meta.sr.ht.log


@@ 18,13 18,13 @@ start() {
	ebegin "Starting $name"
	start-stop-daemon \
		-u ${META_USER} \
        -1 "$LOGS" \
        -2 "$LOGS" \
		-1 "$LOGS" \
		-2 "$LOGS" \
		--background \
		--make-pidfile \
		--pidfile /run/$name.pid \
		--exec /usr/bin/gunicorn -- \
			metasrht.app:app -b ${META_BIND}
			metasrht.app:app_dispatch -b ${META_BIND}
	eend $?
}


M sr.ht/meta.sr.ht/meta.sr.ht.post-install => sr.ht/meta.sr.ht/meta.sr.ht.post-install +2 -2
@@ 1,3 1,3 @@
#!/bin/sh
addgroup -S metasrht || true
adduser -SDH -s /sbin/nologin -g metasrht metasrht || true
addgroup -S meta || true
adduser -SDH -s /sbin/nologin -g meta meta || true