Import avahi-daemon service def from Artix
This commit is contained in:
parent
369c55cd8e
commit
1d20988d9d
2
config/avahi.conf
Normal file
2
config/avahi.conf
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
# This configures the directives used for s6-log in the log service.
|
||||||
|
DIRECTIVES="n3 s2000000 T"
|
1
sv/avahi-daemon-log/consumer-for
Normal file
1
sv/avahi-daemon-log/consumer-for
Normal file
@ -0,0 +1 @@
|
|||||||
|
avahi-daemon-srv
|
1
sv/avahi-daemon-log/notification-fd
Normal file
1
sv/avahi-daemon-log/notification-fd
Normal file
@ -0,0 +1 @@
|
|||||||
|
3
|
1
sv/avahi-daemon-log/pipeline-name
Normal file
1
sv/avahi-daemon-log/pipeline-name
Normal file
@ -0,0 +1 @@
|
|||||||
|
avahi-daemon
|
9
sv/avahi-daemon-log/run
Normal file
9
sv/avahi-daemon-log/run
Normal 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
1
sv/avahi-daemon-log/type
Normal file
@ -0,0 +1 @@
|
|||||||
|
longrun
|
0
sv/avahi-daemon-srv/dependencies.d/dbus
Normal file
0
sv/avahi-daemon-srv/dependencies.d/dbus
Normal file
1
sv/avahi-daemon-srv/producer-for
Normal file
1
sv/avahi-daemon-srv/producer-for
Normal file
@ -0,0 +1 @@
|
|||||||
|
avahi-daemon-log
|
3
sv/avahi-daemon-srv/run
Normal file
3
sv/avahi-daemon-srv/run
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
#!/bin/execlineb -P
|
||||||
|
fdmove -c 2 1
|
||||||
|
exec avahi-daemon
|
1
sv/avahi-daemon-srv/type
Normal file
1
sv/avahi-daemon-srv/type
Normal file
@ -0,0 +1 @@
|
|||||||
|
longrun
|
Loading…
Reference in New Issue
Block a user