summaryrefslogtreecommitdiff
path: root/examples/syslogd-linux/log/run
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2015-10-06 16:23:19 +0000
committerLaurent Bercot <ska-skaware@skarnet.org>2015-10-06 16:23:19 +0000
commit4da6b9c320e6b49d38af5cb6b5861480141f24cd (patch)
treec920b72f5f291a29a71ca009ce113e4846b8a217 /examples/syslogd-linux/log/run
parent478dd24279f833042a94590df0726d163b576af5 (diff)
downloads6-4da6b9c320e6b49d38af5cb6b5861480141f24cd.tar.xz
- add -s support to s6-svscan
- change examples to support -s - change examples to invoke s6-rc, remove servicedirs
Diffstat (limited to 'examples/syslogd-linux/log/run')
-rwxr-xr-xexamples/syslogd-linux/log/run8
1 files changed, 8 insertions, 0 deletions
diff --git a/examples/syslogd-linux/log/run b/examples/syslogd-linux/log/run
new file mode 100755
index 0000000..56de271
--- /dev/null
+++ b/examples/syslogd-linux/log/run
@@ -0,0 +1,8 @@
+#!/command/execlineb -P
+s6-setuidgid syslog
+s6-envdir -f env
+import -Cs LOGSCRIPT
+exec -c
+s6-log $LOGSCRIPT
+
+# Change env/LOGSCRIPT to alter s6-log's behaviour