summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2019-01-15 14:50:57 +0000
committerLaurent Bercot <ska-skaware@skarnet.org>2019-01-15 14:50:57 +0000
commit4257dbc01527027ad028667bfd7568352b49f1eb (patch)
tree4a1095a473f1cea4986992fc31396b8851ee3992
parenta39a69a810620946ba52770c3a9572e4e126f9d5 (diff)
downloads6-4257dbc01527027ad028667bfd7568352b49f1eb.tar.xz
Update examples
-rw-r--r--examples/klogd-linux/log/notification-fd1
-rwxr-xr-xexamples/klogd-linux/log/run2
-rw-r--r--examples/syslogd-linux/log/notification-fd1
-rwxr-xr-xexamples/syslogd-linux/log/run2
4 files changed, 4 insertions, 2 deletions
diff --git a/examples/klogd-linux/log/notification-fd b/examples/klogd-linux/log/notification-fd
new file mode 100644
index 0000000..00750ed
--- /dev/null
+++ b/examples/klogd-linux/log/notification-fd
@@ -0,0 +1 @@
+3
diff --git a/examples/klogd-linux/log/run b/examples/klogd-linux/log/run
index d9659e7..458fe27 100755
--- a/examples/klogd-linux/log/run
+++ b/examples/klogd-linux/log/run
@@ -1,4 +1,4 @@
#!/command/execlineb -P
s6-setuidgid klog
exec -c
-s6-log t s1000000 n20 /var/log/klogd
+s6-log -d3 t s1000000 n20 /var/log/klogd
diff --git a/examples/syslogd-linux/log/notification-fd b/examples/syslogd-linux/log/notification-fd
new file mode 100644
index 0000000..00750ed
--- /dev/null
+++ b/examples/syslogd-linux/log/notification-fd
@@ -0,0 +1 @@
+3
diff --git a/examples/syslogd-linux/log/run b/examples/syslogd-linux/log/run
index 6f1c877..fcb667c 100755
--- a/examples/syslogd-linux/log/run
+++ b/examples/syslogd-linux/log/run
@@ -3,6 +3,6 @@ s6-setuidgid syslog
s6-envdir -f env
importas -Cs LOGSCRIPT LOGSCRIPT
exec -c
-s6-log $LOGSCRIPT
+s6-log -d3 -- $LOGSCRIPT
# Change env/LOGSCRIPT to alter s6-log's behaviour