diff options
author | Laurent Bercot <ska-skaware@skarnet.org> | 2022-08-18 22:12:48 +0000 |
---|---|---|
committer | Laurent Bercot <ska@appnovation.com> | 2022-08-18 22:12:48 +0000 |
commit | 4c1373e6b4222e47f352247af397bcbcdae6cb59 (patch) | |
tree | 28242eb1ac6bd45890c1b11422e9e1972cccf338 /examples/syslogd/log/run | |
parent | b653b531bab9cafc0a0137fbf373602132c7105b (diff) | |
download | s6-4c1373e6b4222e47f352247af397bcbcdae6cb59.tar.xz |
Update syslogd example
Signed-off-by: Laurent Bercot <ska@appnovation.com>
Diffstat (limited to 'examples/syslogd/log/run')
-rwxr-xr-x | examples/syslogd/log/run | 22 |
1 files changed, 17 insertions, 5 deletions
diff --git a/examples/syslogd/log/run b/examples/syslogd/log/run index c066f37..36c7d87 100755 --- a/examples/syslogd/log/run +++ b/examples/syslogd/log/run @@ -1,8 +1,20 @@ -#!/bun/execlineb -P +#!/bin/execlineb -P s6-setuidgid syslog -s6-envdir -f env -importas -Cs LOGSCRIPT LOGSCRIPT +multisubstitute +{ + define T t + define dir /var/log/syslogd +} exec -c -s6-log -d3 -- $LOGSCRIPT +s6-log -d3 -- -# Change env/LOGSCRIPT to alter s6-log's behaviour + - +^auth\\. +^authpriv\\. $T ${dir}/secure + - +^cron\\. $T ${dir}/cron + - +^daemon\\. $T ${dir}/daemon + - +^[[:alnum:]]*\\.debug: $T ${dir}/debug + - +^[[:alnum:]]*\\.err: +^[[:alnum:]]*\\.error: +^[[:alnum:]]*\\.emerg: +^[[:alnum:]]*\\.alert: +^[[:alnum:]]*\\.crit: $T ${dir}/errors + - +^kern\\. $T ${dir}/kernel + - +mail\\. $T ${dir}/mail + - +user\\. $T ${dir}/user + - +^[[:alnum:]]*\\.info: +^[[:alnum:]]*\\.notice: +^[[:alnum:]]*\\.warn: -^auth\\. -^authpriv\\. -^cron\\. -daemon\\. -mail\\. $T ${dir}/messages + + -^auth\\. -^authpriv\\. $T ${dir}/everything |