summaryrefslogtreecommitdiff
path: root/examples/syslogd/log/run
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2021-08-18 18:46:40 +0000
committerLaurent Bercot <ska@appnovation.com>2021-08-18 18:46:40 +0000
commit678508409a92f80cacd94a70e1e51ca4a389435a (patch)
tree8dc9502d1a8d6785d2ba14afe808a7b52942167a /examples/syslogd/log/run
parent0fbc13bdc5bf68c6ff44bca7d0f6db02ae045ba5 (diff)
downloads6-678508409a92f80cacd94a70e1e51ca4a389435a.tar.xz
Add s6-socklog
Signed-off-by: Laurent Bercot <ska@appnovation.com>
Diffstat (limited to 'examples/syslogd/log/run')
-rwxr-xr-xexamples/syslogd/log/run8
1 files changed, 8 insertions, 0 deletions
diff --git a/examples/syslogd/log/run b/examples/syslogd/log/run
new file mode 100755
index 0000000..c066f37
--- /dev/null
+++ b/examples/syslogd/log/run
@@ -0,0 +1,8 @@
+#!/bun/execlineb -P
+s6-setuidgid syslog
+s6-envdir -f env
+importas -Cs LOGSCRIPT LOGSCRIPT
+exec -c
+s6-log -d3 -- $LOGSCRIPT
+
+# Change env/LOGSCRIPT to alter s6-log's behaviour