~dricottone/huttese-apk

601e65af63f22f63a0a4b2c5fd54e9c119ee3029 — Drew DeVault 5 years ago ac84930
Add logs to init files
2 files changed, 6 insertions(+), 0 deletions(-)

M sr.ht/git.sr.ht/git.sr.ht.init
M sr.ht/meta.sr.ht/meta.sr.ht.init
M sr.ht/git.sr.ht/git.sr.ht.init => sr.ht/git.sr.ht/git.sr.ht.init +3 -0
@@ 6,6 6,7 @@ description="git.sr.ht service"
GIT_USER=${GIT_USER:-gitsrht}
GIT_BIND=${GIT_BIND:-127.0.0.1:5001}
LOCAL_PG=${LOCAL_PG:-yes}
LOGS=/var/log/git.sr.ht.log

depend() {
	need net


@@ 17,6 18,8 @@ start() {
	ebegin "Starting $name"
	start-stop-daemon \
		-u ${GIT_USER} \
        -1 "$LOGS" \
        -2 "$LOGS" \
		--background \
		--make-pidfile \
		--pidfile /run/$name.pid \

M sr.ht/meta.sr.ht/meta.sr.ht.init => sr.ht/meta.sr.ht/meta.sr.ht.init +3 -0
@@ 6,6 6,7 @@ description="meta.sr.ht service"
META_USER=${META_USER:-metasrht}
META_BIND=${META_BIND:-127.0.0.1:5000}
LOCAL_PG=${LOCAL_PG:-yes}
LOGS=/var/log/meta.sr.ht.log

depend() {
	need net


@@ 17,6 18,8 @@ start() {
	ebegin "Starting $name"
	start-stop-daemon \
		-u ${META_USER} \
        -1 "$LOGS" \
        -2 "$LOGS" \
		--background \
		--make-pidfile \
		--pidfile /run/$name.pid \