diff options
-rw-r--r-- | .gitignore | 1 | ||||
-rwxr-xr-x | examples/ROOT/img/services-local/klogd-linux/log/run | 2 | ||||
-rw-r--r-- | examples/ROOT/img/services-local/syslogd-linux/log/env/LOGLINE | 7 | ||||
-rwxr-xr-x | examples/ROOT/img/services-local/syslogd-linux/log/run | 6 | ||||
-rwxr-xr-x | examples/ROOT/img/services-network/dns-cache/log/run | 2 | ||||
-rwxr-xr-x | examples/ROOT/img/services-network/ntpclient/log/run | 2 | ||||
-rwxr-xr-x | examples/ROOT/img/services-network/sshd/log/run | 2 | ||||
-rwxr-xr-x | examples/ROOT/img/tmpfs/service/s6-svscan-log/run | 2 | ||||
-rwxr-xr-x | examples/s6-svscanboot | 12 |
9 files changed, 23 insertions, 13 deletions
diff --git a/.gitignore b/.gitignore index 5c6415e..cec61a8 100644 --- a/.gitignore +++ b/.gitignore @@ -3,3 +3,4 @@ *.lo *.so *.so.* +*~ 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 diff --git a/examples/ROOT/img/services-network/dns-cache/log/run b/examples/ROOT/img/services-network/dns-cache/log/run index 7bd42bd..4177eaa 100755 --- a/examples/ROOT/img/services-network/dns-cache/log/run +++ b/examples/ROOT/img/services-network/dns-cache/log/run @@ -1,4 +1,4 @@ #!/command/execlineb -P s6-setuidgid dnslog exec -c -s6-log -t s1000000 n20 /var/log/dns-cache +s6-log t s1000000 n20 /var/log/dns-cache diff --git a/examples/ROOT/img/services-network/ntpclient/log/run b/examples/ROOT/img/services-network/ntpclient/log/run index 261b534..80d7b5b 100755 --- a/examples/ROOT/img/services-network/ntpclient/log/run +++ b/examples/ROOT/img/services-network/ntpclient/log/run @@ -1,4 +1,4 @@ #!/command/execlineb -P s6-setuidgid ntplog exec -c -s6-log -t /var/log/ntpclient +s6-log t /var/log/ntpclient diff --git a/examples/ROOT/img/services-network/sshd/log/run b/examples/ROOT/img/services-network/sshd/log/run index 9795581..d07f180 100755 --- a/examples/ROOT/img/services-network/sshd/log/run +++ b/examples/ROOT/img/services-network/sshd/log/run @@ -1,4 +1,4 @@ #!/command/execlineb -P s6-setuidgid log exec -c -s6-log -t s1000000 n20 /var/log/sshd +s6-log t s1000000 n20 /var/log/sshd diff --git a/examples/ROOT/img/tmpfs/service/s6-svscan-log/run b/examples/ROOT/img/tmpfs/service/s6-svscan-log/run index a55a822..7536e1f 100755 --- a/examples/ROOT/img/tmpfs/service/s6-svscan-log/run +++ b/examples/ROOT/img/tmpfs/service/s6-svscan-log/run @@ -3,7 +3,7 @@ redirfd -w 2 /dev/console redirfd -rnb 0 fifo s6-setuidgid nobody exec -c -s6-log -bpt /tmp/uncaught-logs +s6-log -bp t /tmp/uncaught-logs # The -p option is important: # even if s6-svscan is told to kill everything, diff --git a/examples/s6-svscanboot b/examples/s6-svscanboot index 6a25ced..2e36623 100755 --- a/examples/s6-svscanboot +++ b/examples/s6-svscanboot @@ -1,8 +1,8 @@ #!/command/execlineb -P -/command/exec -c -/command/redirfd -wnb 1 /service/s6-svscan-log/fifo -/command/fdmove -c 2 1 -/command/s6-envdir -I /service/.s6-svscan/env -/command/exec -a s6-svscan -/command/s6-svscan -t0 /service +exec -c +redirfd -wnb 1 /service/s6-svscan-log/fifo +fdmove -c 2 1 +s6-envdir -I /service/.s6-svscan/env +exec -a s6-svscan +s6-svscan -t0 /service |