summaryrefslogtreecommitdiff
path: root/examples/ROOT/img/services-local
diff options
context:
space:
mode:
Diffstat (limited to 'examples/ROOT/img/services-local')
-rwxr-xr-xexamples/ROOT/img/services-local/klogd-linux/log/run2
-rw-r--r--examples/ROOT/img/services-local/syslogd-linux/log/env/LOGLINE7
-rwxr-xr-xexamples/ROOT/img/services-local/syslogd-linux/log/run6
3 files changed, 12 insertions, 3 deletions
diff --git a/examples/ROOT/img/services-local/klogd-linux/log/run b/examples/ROOT/img/services-local/klogd-linux/log/run
index 66f2cd5..d9659e7 100755
--- a/examples/ROOT/img/services-local/klogd-linux/log/run
+++ b/examples/ROOT/img/services-local/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 t s1000000 n20 /var/log/klogd
diff --git a/examples/ROOT/img/services-local/syslogd-linux/log/env/LOGLINE b/examples/ROOT/img/services-local/syslogd-linux/log/env/LOGLINE
new file mode 100644
index 0000000..814f95c
--- /dev/null
+++ b/examples/ROOT/img/services-local/syslogd-linux/log/env/LOGLINE
@@ -0,0 +1,7 @@
+- +^error\. t /var/log/syslogd/error
+- +^authpriv\. t /var/log/syslogd/auth
+- +^user\. t /var/log/syslogd/user
+- +^messages\. t /var/log/syslogd/messages
+- +^daemon\. t /var/log/syslogd/daemon
+- f t /var/log/syslogd/misc
+
diff --git a/examples/ROOT/img/services-local/syslogd-linux/log/run b/examples/ROOT/img/services-local/syslogd-linux/log/run
index 0d99ba9..3cb4796 100755
--- a/examples/ROOT/img/services-local/syslogd-linux/log/run
+++ b/examples/ROOT/img/services-local/syslogd-linux/log/run
@@ -1,5 +1,7 @@
#!/command/execlineb -P
+s6-envdir -f env
+import -Cs LOGLINE
s6-setuidgid syslog
exec -c
-s6-log -t s1000000 n20 /var/log/syslogd
-# Change the logging script to alter s6-log's behaviour
+s6-log $LOGLINE
+# Change env/LOGLINE to alter s6-log's behaviour