mirror of
https://codeberg.org/andyscott/s6-scripts.git
synced 2024-12-23 02:43:12 -05:00
Added klogd, smartd, tomoyo-auditd
This commit is contained in:
parent
5f63803ef9
commit
abb7d52408
25 changed files with 58 additions and 0 deletions
1
klogd-log/consumer-for
Normal file
1
klogd-log/consumer-for
Normal file
|
@ -0,0 +1 @@
|
||||||
|
klogd-srv
|
1
klogd-log/notification-fd
Normal file
1
klogd-log/notification-fd
Normal file
|
@ -0,0 +1 @@
|
||||||
|
3
|
1
klogd-log/pipeline-name
Normal file
1
klogd-log/pipeline-name
Normal file
|
@ -0,0 +1 @@
|
||||||
|
klogd
|
10
klogd-log/run
Normal file
10
klogd-log/run
Normal file
|
@ -0,0 +1,10 @@
|
||||||
|
#!/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 } {
|
||||||
|
foreground { install -d -o root -g root /var/log/klogd }
|
||||||
|
exec -c s6-log -d3 -b -- ${DIRECTIVES} /var/log/klogd
|
||||||
|
}
|
||||||
|
foreground { install -d -o root -g root /run/log/klogd }
|
||||||
|
exec -c s6-log -d3 -b -- ${DIRECTIVES} /run/log/klogd
|
1
klogd-log/type
Normal file
1
klogd-log/type
Normal file
|
@ -0,0 +1 @@
|
||||||
|
longrun
|
0
klogd-srv/dependencies.d/mount-procfs
Normal file
0
klogd-srv/dependencies.d/mount-procfs
Normal file
1
klogd-srv/producer-for
Normal file
1
klogd-srv/producer-for
Normal file
|
@ -0,0 +1 @@
|
||||||
|
klogd-log
|
6
klogd-srv/run
Normal file
6
klogd-srv/run
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
#!/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
|
1
klogd-srv/type
Normal file
1
klogd-srv/type
Normal file
|
@ -0,0 +1 @@
|
||||||
|
longrun
|
1
smartd-log/consumer-for
Normal file
1
smartd-log/consumer-for
Normal file
|
@ -0,0 +1 @@
|
||||||
|
smartd-srv
|
1
smartd-log/notification-fd
Normal file
1
smartd-log/notification-fd
Normal file
|
@ -0,0 +1 @@
|
||||||
|
3
|
1
smartd-log/pipeline-name
Normal file
1
smartd-log/pipeline-name
Normal file
|
@ -0,0 +1 @@
|
||||||
|
smartd
|
9
smartd-log/run
Normal file
9
smartd-log/run
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
#!/bin/execlineb -P
|
||||||
|
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
|
||||||
|
}
|
||||||
|
foreground { install -d -o s6log -g s6log /run/log/smartd }
|
||||||
|
exec -c s6-log -d3 -b -- ${DIRECTIVES} /run/log/smartd
|
1
smartd-log/type
Normal file
1
smartd-log/type
Normal file
|
@ -0,0 +1 @@
|
||||||
|
longrun
|
1
smartd-srv/producer-for
Normal file
1
smartd-srv/producer-for
Normal file
|
@ -0,0 +1 @@
|
||||||
|
smartd-log
|
3
smartd-srv/run
Normal file
3
smartd-srv/run
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
#!/bin/execlineb -P
|
||||||
|
fdmove -c 2 1
|
||||||
|
exec smartd -d
|
1
smartd-srv/type
Normal file
1
smartd-srv/type
Normal file
|
@ -0,0 +1 @@
|
||||||
|
longrun
|
1
tomoyo-auditd-log/consumer-for
Normal file
1
tomoyo-auditd-log/consumer-for
Normal file
|
@ -0,0 +1 @@
|
||||||
|
tomoyo-auditd-srv
|
1
tomoyo-auditd-log/notification-fd
Normal file
1
tomoyo-auditd-log/notification-fd
Normal file
|
@ -0,0 +1 @@
|
||||||
|
3
|
1
tomoyo-auditd-log/pipeline-name
Normal file
1
tomoyo-auditd-log/pipeline-name
Normal file
|
@ -0,0 +1 @@
|
||||||
|
tomoyo-auditd
|
9
tomoyo-auditd-log/run
Normal file
9
tomoyo-auditd-log/run
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
#!/bin/execlineb -P
|
||||||
|
envfile /etc/s6/config/tomoyo-audit.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
tomoyo-auditd-log/type
Normal file
1
tomoyo-auditd-log/type
Normal file
|
@ -0,0 +1 @@
|
||||||
|
longrun
|
1
tomoyo-auditd-srv/producer-for
Normal file
1
tomoyo-auditd-srv/producer-for
Normal file
|
@ -0,0 +1 @@
|
||||||
|
tomoyo-auditd-log
|
3
tomoyo-auditd-srv/run
Normal file
3
tomoyo-auditd-srv/run
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
#!/bin/execlineb -P
|
||||||
|
fdmove -c 2 1
|
||||||
|
exec tomoyo-auditd
|
1
tomoyo-auditd-srv/type
Normal file
1
tomoyo-auditd-srv/type
Normal file
|
@ -0,0 +1 @@
|
||||||
|
longrun
|
Loading…
Reference in a new issue