diff options
author | Laurent Bercot <ska-skaware@skarnet.org> | 2015-10-06 16:23:19 +0000 |
---|---|---|
committer | Laurent Bercot <ska-skaware@skarnet.org> | 2015-10-06 16:23:19 +0000 |
commit | 4da6b9c320e6b49d38af5cb6b5861480141f24cd (patch) | |
tree | c920b72f5f291a29a71ca009ce113e4846b8a217 /examples/klogd-linux | |
parent | 478dd24279f833042a94590df0726d163b576af5 (diff) | |
download | s6-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/klogd-linux')
-rw-r--r-- | examples/klogd-linux/README | 5 | ||||
-rw-r--r-- | examples/klogd-linux/log/README | 1 | ||||
-rwxr-xr-x | examples/klogd-linux/log/run | 4 | ||||
-rwxr-xr-x | examples/klogd-linux/run | 5 |
4 files changed, 15 insertions, 0 deletions
diff --git a/examples/klogd-linux/README b/examples/klogd-linux/README new file mode 100644 index 0000000..712cfa3 --- /dev/null +++ b/examples/klogd-linux/README @@ -0,0 +1,5 @@ +This is an example of a service directory for process supervision by s6. + +This klogd emulation is only valid under Linux. +The service only processes logs from /proc/kmsg and +sends them to stdout, i.e. its own logger. diff --git a/examples/klogd-linux/log/README b/examples/klogd-linux/log/README new file mode 100644 index 0000000..6b51a4a --- /dev/null +++ b/examples/klogd-linux/log/README @@ -0,0 +1 @@ +Processed kernel logs will be logged to the /var/log/klogd/ logdir. diff --git a/examples/klogd-linux/log/run b/examples/klogd-linux/log/run new file mode 100755 index 0000000..d9659e7 --- /dev/null +++ b/examples/klogd-linux/log/run @@ -0,0 +1,4 @@ +#!/command/execlineb -P +s6-setuidgid klog +exec -c +s6-log t s1000000 n20 /var/log/klogd diff --git a/examples/klogd-linux/run b/examples/klogd-linux/run new file mode 100755 index 0000000..453b55b --- /dev/null +++ b/examples/klogd-linux/run @@ -0,0 +1,5 @@ +#!/command/execlineb -P +fdmove -c 2 1 +redirfd -r 0 /proc/kmsg +exec -c +ucspilogd |