From 1d20988d9de010dad04e2da331dd56b28033d6df Mon Sep 17 00:00:00 2001 From: Nathan Fisher Date: Wed, 5 Oct 2022 12:05:04 -0400 Subject: [PATCH] Import avahi-daemon service def from Artix --- config/avahi.conf | 2 ++ sv/avahi-daemon-log/consumer-for | 1 + sv/avahi-daemon-log/notification-fd | 1 + sv/avahi-daemon-log/pipeline-name | 1 + sv/avahi-daemon-log/run | 9 +++++++++ sv/avahi-daemon-log/type | 1 + sv/avahi-daemon-srv/dependencies.d/dbus | 0 sv/avahi-daemon-srv/producer-for | 1 + sv/avahi-daemon-srv/run | 3 +++ sv/avahi-daemon-srv/type | 1 + 10 files changed, 20 insertions(+) create mode 100644 config/avahi.conf create mode 100644 sv/avahi-daemon-log/consumer-for create mode 100644 sv/avahi-daemon-log/notification-fd create mode 100644 sv/avahi-daemon-log/pipeline-name create mode 100644 sv/avahi-daemon-log/run create mode 100644 sv/avahi-daemon-log/type create mode 100644 sv/avahi-daemon-srv/dependencies.d/dbus create mode 100644 sv/avahi-daemon-srv/producer-for create mode 100644 sv/avahi-daemon-srv/run create mode 100644 sv/avahi-daemon-srv/type diff --git a/config/avahi.conf b/config/avahi.conf new file mode 100644 index 0000000..565bdae --- /dev/null +++ b/config/avahi.conf @@ -0,0 +1,2 @@ +# This configures the directives used for s6-log in the log service. +DIRECTIVES="n3 s2000000 T" diff --git a/sv/avahi-daemon-log/consumer-for b/sv/avahi-daemon-log/consumer-for new file mode 100644 index 0000000..5853aad --- /dev/null +++ b/sv/avahi-daemon-log/consumer-for @@ -0,0 +1 @@ +avahi-daemon-srv diff --git a/sv/avahi-daemon-log/notification-fd b/sv/avahi-daemon-log/notification-fd new file mode 100644 index 0000000..00750ed --- /dev/null +++ b/sv/avahi-daemon-log/notification-fd @@ -0,0 +1 @@ +3 diff --git a/sv/avahi-daemon-log/pipeline-name b/sv/avahi-daemon-log/pipeline-name new file mode 100644 index 0000000..d0a8e31 --- /dev/null +++ b/sv/avahi-daemon-log/pipeline-name @@ -0,0 +1 @@ +avahi-daemon diff --git a/sv/avahi-daemon-log/run b/sv/avahi-daemon-log/run new file mode 100644 index 0000000..a7b8895 --- /dev/null +++ b/sv/avahi-daemon-log/run @@ -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 diff --git a/sv/avahi-daemon-log/type b/sv/avahi-daemon-log/type new file mode 100644 index 0000000..5883cff --- /dev/null +++ b/sv/avahi-daemon-log/type @@ -0,0 +1 @@ +longrun diff --git a/sv/avahi-daemon-srv/dependencies.d/dbus b/sv/avahi-daemon-srv/dependencies.d/dbus new file mode 100644 index 0000000..e69de29 diff --git a/sv/avahi-daemon-srv/producer-for b/sv/avahi-daemon-srv/producer-for new file mode 100644 index 0000000..c8b6867 --- /dev/null +++ b/sv/avahi-daemon-srv/producer-for @@ -0,0 +1 @@ +avahi-daemon-log diff --git a/sv/avahi-daemon-srv/run b/sv/avahi-daemon-srv/run new file mode 100644 index 0000000..d5de012 --- /dev/null +++ b/sv/avahi-daemon-srv/run @@ -0,0 +1,3 @@ +#!/bin/execlineb -P +fdmove -c 2 1 +exec avahi-daemon diff --git a/sv/avahi-daemon-srv/type b/sv/avahi-daemon-srv/type new file mode 100644 index 0000000..5883cff --- /dev/null +++ b/sv/avahi-daemon-srv/type @@ -0,0 +1 @@ +longrun