diff options
Diffstat (limited to 'uwsgi/uwsgi-log')
-rw-r--r-- | uwsgi/uwsgi-log/consumer-for | 1 | ||||
-rw-r--r-- | uwsgi/uwsgi-log/notification-fd | 1 | ||||
-rw-r--r-- | uwsgi/uwsgi-log/pipeline-name | 1 | ||||
-rw-r--r-- | uwsgi/uwsgi-log/run | 9 | ||||
-rw-r--r-- | uwsgi/uwsgi-log/type | 1 |
5 files changed, 13 insertions, 0 deletions
diff --git a/uwsgi/uwsgi-log/consumer-for b/uwsgi/uwsgi-log/consumer-for new file mode 100644 index 0000000..ad70c24 --- /dev/null +++ b/uwsgi/uwsgi-log/consumer-for @@ -0,0 +1 @@ +uwsgi-srv diff --git a/uwsgi/uwsgi-log/notification-fd b/uwsgi/uwsgi-log/notification-fd new file mode 100644 index 0000000..00750ed --- /dev/null +++ b/uwsgi/uwsgi-log/notification-fd @@ -0,0 +1 @@ +3 diff --git a/uwsgi/uwsgi-log/pipeline-name b/uwsgi/uwsgi-log/pipeline-name new file mode 100644 index 0000000..caf986e --- /dev/null +++ b/uwsgi/uwsgi-log/pipeline-name @@ -0,0 +1 @@ +uwsgi 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 diff --git a/uwsgi/uwsgi-log/type b/uwsgi/uwsgi-log/type new file mode 100644 index 0000000..5883cff --- /dev/null +++ b/uwsgi/uwsgi-log/type @@ -0,0 +1 @@ +longrun |