From 9bb6b9f7d5246c7a896c909c40370dc75644d4cf Mon Sep 17 00:00:00 2001 From: sinanmohd Date: Tue, 10 Jan 2023 21:53:00 +0530 Subject: uwsgi: add s6-rc service scripts for uwsgi, cgit --- uwsgi/uwsgi-log/run | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 uwsgi/uwsgi-log/run (limited to 'uwsgi/uwsgi-log/run') diff --git a/uwsgi/uwsgi-log/run b/uwsgi/uwsgi-log/run new file mode 100644 index 0000000..88a37b0 --- /dev/null +++ b/uwsgi/uwsgi-log/run @@ -0,0 +1,9 @@ +#!/bin/execlineb -P +envfile /etc/s6/config/uwsgi.conf +importas -sCuD "n3 s2000000 T" DIRECTIVES DIRECTIVES +ifelse { test -w /var/log } { + foreground { install -d -o s6log -g s6log /var/log/uwsgi } + s6-setuidgid s6log exec -c s6-log -d3 -b -- ${DIRECTIVES} /var/log/uwsgi +} +foreground { install -d -o s6log -g s6log /run/log/uwsgi } +s6-setuidgid s6log exec -c s6-log -d3 -b -- ${DIRECTIVES} /run/log/uwsgi -- cgit v1.2.3