Compare commits

..

No commits in common. "9e69bf6d9aa43f5ed0ea62ed2ec07725440e2717" and "845d4900974207fc001b5e727ef2183aae1c859e" have entirely different histories.

36 changed files with 32 additions and 34 deletions

1
README.md Normal file
View file

@ -0,0 +1 @@
# s6-scripts

View file

@ -1 +0,0 @@
DIRECTIVES="s2000000 n3 t"

View file

@ -1,2 +0,0 @@
# This configures the directives used for s6-log in the log service.
DIRECTIVES="n3 s2000000 T"

View file

@ -1,6 +0,0 @@
#!/bin/execlineb -P
# See: https://git.skarnet.org/cgi-bin/cgit.cgi/s6/tree/examples
fdmove -c 2 1
redirfd -r 0 /proc/kmsg
exec -c
ucspilogd

2
klogd/README.md Normal file
View file

@ -0,0 +1,2 @@
Based on the [example](https://git.skarnet.org/cgi-bin/cgit.cgi/s6/tree/examples/klogd-linux) provided by s6,
Copyright (c) 2011 Laurent Bercot [ISC License](https://git.skarnet.org/cgi-bin/cgit.cgi/s6/tree/COPYING)

View file

@ -1,5 +1,4 @@
#!/bin/execlineb -P
# See: https://git.skarnet.org/cgi-bin/cgit.cgi/s6/tree/examples
envfile /etc/s6/config/klogd.conf
importas -sCuD "s2000000 n3 t" DIRECTIVES DIRECTIVES
ifelse { test -w /var/log } {

4
klogd/klogd-srv/run Normal file
View file

@ -0,0 +1,4 @@
#!/bin/execlineb -P
fdmove -c 2 1
redirfd -r 0 /proc/kmsg
exec -c ucspilogd

View file

@ -1,2 +1,2 @@
# This configures the directives used for s6-log in the log service.
DIRECTIVES="n3 s2000000 T"
DIRECTIVES="s2000000 n3 t"

View file

@ -1,3 +0,0 @@
#!/bin/execlineb -P
fdmove -c 2 1
exec smartd -d

View file

@ -3,7 +3,7 @@ envfile /etc/s6/config/smartd.conf
importas -sCuD "s2000000 n3 T" DIRECTIVES DIRECTIVES
ifelse { test -w /var/log } {
foreground { install -d -o s6log -g s6log /var/log/smartd }
exec -c s6-log -d3 -b -- ${DIRECTIVES} /var/log/smartd
s6-setuidgid s6log exec -c s6-log -d3 -b -- ${DIRECTIVES} /var/log/smartd
}
foreground { install -d -o s6log -g s6log /run/log/smartd }
exec -c s6-log -d3 -b -- ${DIRECTIVES} /run/log/smartd
s6-setuidgid s6log exec -c s6-log -d3 -b -- ${DIRECTIVES} /run/log/smartd

View file

@ -0,0 +1,5 @@
#!/bin/execlineb -P
envfile /etc/s6/config/smartd.conf
importas -sCuD "" SMARTD_OPTS SMARTD_OPTS
fdmove -c 2 1
exec smartd ${SMARTD_OPTS}

View file

@ -0,0 +1,7 @@
# "-d" ("--debug") provides additional output and allows s6-log to handle
# logging, change to "-n" ("--no-fork") if you prefer syslog. See SMARTD(8)
# for additional options.
SMARTD_OPTS="-d"
# This configures the directives used for s6-log in the log service.
DIRECTIVES="n3 s2000000 T"

View file

@ -1 +0,0 @@
tomoyo-auditd-srv

View file

@ -1 +0,0 @@
3

View file

@ -1 +0,0 @@
tomoyo-auditd

View file

@ -1,9 +0,0 @@
#!/bin/execlineb -P
envfile /etc/s6/config/tomoyo-auditd.conf
importas -sCuD "n3 s2000000 T" DIRECTIVES DIRECTIVES
ifelse { test -w /var/log } {
foreground { install -d -o s6log -g s6log /var/log/tomoyo-auditd }
s6-setuidgid s6log exec -c s6-log -d3 -b -- ${DIRECTIVES} /var/log/tomoyo-auditd
}
foreground { install -d -o s6log -g s6log /run/log/tomoyo-auditd }
s6-setuidgid s6log exec -c s6-log -d3 -b -- ${DIRECTIVES} /run/log/tomoyo-auditd

View file

@ -1 +0,0 @@
longrun

View file

@ -1 +0,0 @@
tomoyo-auditd-log

View file

@ -1,3 +0,0 @@
#!/bin/execlineb -P
fdmove -c 2 1
exec tomoyo-auditd

View file

@ -1 +0,0 @@
longrun

View file

@ -0,0 +1,5 @@
# Retrieve logs from a remote system (e.g. REMOTE="remote_ip:remote_port").
# Note that tomoyo-auditd still requires that we configure audit logs in
# /etc/tomoyo/tools/auditd.conf, see TOMOYO-AUDITD(8) or
# https://tomoyo.osdn.jp.
REMOTE=""

1
tomoyo-tools/type Normal file
View file

@ -0,0 +1 @@
oneshot

4
tomoyo-tools/up Normal file
View file

@ -0,0 +1,4 @@
#!/bin/execlineb -P
envfile /etc/s6/config/tomoyo-auditd.conf
importas -sCuD "" REMOTE REMOTE
exec tomoyo-auditd ${REMOTE}