Import avahi-daemon service def from Artix

This commit is contained in:
Nathan Fisher 2022-10-05 12:05:04 -04:00
parent 369c55cd8e
commit 1d20988d9d
10 changed files with 20 additions and 0 deletions

2
config/avahi.conf Normal file
View File

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

View File

@ -0,0 +1 @@
avahi-daemon-srv

View File

@ -0,0 +1 @@
3

View File

@ -0,0 +1 @@
avahi-daemon

9
sv/avahi-daemon-log/run Normal file
View File

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

1
sv/avahi-daemon-log/type Normal file
View File

@ -0,0 +1 @@
longrun

View File

View File

@ -0,0 +1 @@
avahi-daemon-log

3
sv/avahi-daemon-srv/run Normal file
View File

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

1
sv/avahi-daemon-srv/type Normal file
View File

@ -0,0 +1 @@
longrun