mirror of
https://codeberg.org/andyscott/s6-scripts.git
synced 2024-11-09 13:50:50 -05:00
Compare commits
No commits in common. "9e69bf6d9aa43f5ed0ea62ed2ec07725440e2717" and "845d4900974207fc001b5e727ef2183aae1c859e" have entirely different histories.
9e69bf6d9a
...
845d490097
36 changed files with 32 additions and 34 deletions
1
README.md
Normal file
1
README.md
Normal file
|
@ -0,0 +1 @@
|
|||
# s6-scripts
|
|
@ -1 +0,0 @@
|
|||
DIRECTIVES="s2000000 n3 t"
|
|
@ -1,2 +0,0 @@
|
|||
# This configures the directives used for s6-log in the log service.
|
||||
DIRECTIVES="n3 s2000000 T"
|
|
@ -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
2
klogd/README.md
Normal 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)
|
|
@ -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
4
klogd/klogd-srv/run
Normal file
|
@ -0,0 +1,4 @@
|
|||
#!/bin/execlineb -P
|
||||
fdmove -c 2 1
|
||||
redirfd -r 0 /proc/kmsg
|
||||
exec -c ucspilogd
|
|
@ -1,2 +1,2 @@
|
|||
# This configures the directives used for s6-log in the log service.
|
||||
DIRECTIVES="n3 s2000000 T"
|
||||
DIRECTIVES="s2000000 n3 t"
|
|
@ -1,3 +0,0 @@
|
|||
#!/bin/execlineb -P
|
||||
fdmove -c 2 1
|
||||
exec smartd -d
|
|
@ -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
|
5
smartmontools/smartd-srv/run
Normal file
5
smartmontools/smartd-srv/run
Normal 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}
|
7
smartmontools/smartd.conf
Normal file
7
smartmontools/smartd.conf
Normal 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"
|
|
@ -1 +0,0 @@
|
|||
tomoyo-auditd-srv
|
|
@ -1 +0,0 @@
|
|||
3
|
|
@ -1 +0,0 @@
|
|||
tomoyo-auditd
|
|
@ -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
|
|
@ -1 +0,0 @@
|
|||
longrun
|
|
@ -1 +0,0 @@
|
|||
tomoyo-auditd-log
|
|
@ -1,3 +0,0 @@
|
|||
#!/bin/execlineb -P
|
||||
fdmove -c 2 1
|
||||
exec tomoyo-auditd
|
|
@ -1 +0,0 @@
|
|||
longrun
|
5
tomoyo-tools/tomoyo-auditd.conf
Normal file
5
tomoyo-tools/tomoyo-auditd.conf
Normal 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
1
tomoyo-tools/type
Normal file
|
@ -0,0 +1 @@
|
|||
oneshot
|
4
tomoyo-tools/up
Normal file
4
tomoyo-tools/up
Normal file
|
@ -0,0 +1,4 @@
|
|||
#!/bin/execlineb -P
|
||||
envfile /etc/s6/config/tomoyo-auditd.conf
|
||||
importas -sCuD "" REMOTE REMOTE
|
||||
exec tomoyo-auditd ${REMOTE}
|
Loading…
Reference in a new issue