diff options
author | sinanmohd <pcmsinan@gmail.com> | 2023-01-10 21:53:00 +0530 |
---|---|---|
committer | sinanmohd <pcmsinan@gmail.com> | 2023-01-10 21:53:00 +0530 |
commit | 9bb6b9f7d5246c7a896c909c40370dc75644d4cf (patch) | |
tree | 5d510b2d0abf03ced7e98b5f66842c5c18ac1f1a /uwsgi/uwsgi-log/run | |
parent | 1544ca00bbbd39bfae3a43b484f5c5c67e0549e4 (diff) |
uwsgi: add s6-rc service scripts for uwsgi, cgit
Diffstat (limited to 'uwsgi/uwsgi-log/run')
-rw-r--r-- | uwsgi/uwsgi-log/run | 9 |
1 files changed, 9 insertions, 0 deletions
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 |