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