From 9bdd13d12cc739432efa3f70a04952d902880fe4 Mon Sep 17 00:00:00 2001 From: Eugen Wissner Date: Wed, 8 Oct 2025 12:43:57 +0200 Subject: Add dhclient service --- busybox/dhclient-log/consumer-for | 1 + busybox/dhclient-log/dependencies | 1 + busybox/dhclient-log/notification-fd | 1 + busybox/dhclient-log/pipeline-name | 1 + busybox/dhclient-log/run | 10 ++++++++++ busybox/dhclient-log/type | 1 + 6 files changed, 15 insertions(+) create mode 100644 busybox/dhclient-log/consumer-for create mode 100644 busybox/dhclient-log/dependencies create mode 100644 busybox/dhclient-log/notification-fd create mode 100644 busybox/dhclient-log/pipeline-name create mode 100644 busybox/dhclient-log/run create mode 100644 busybox/dhclient-log/type (limited to 'busybox/dhclient-log') diff --git a/busybox/dhclient-log/consumer-for b/busybox/dhclient-log/consumer-for new file mode 100644 index 0000000..f3d2703 --- /dev/null +++ b/busybox/dhclient-log/consumer-for @@ -0,0 +1 @@ +dhclient-srv diff --git a/busybox/dhclient-log/dependencies b/busybox/dhclient-log/dependencies new file mode 100644 index 0000000..ce53c6b --- /dev/null +++ b/busybox/dhclient-log/dependencies @@ -0,0 +1 @@ +remount-root diff --git a/busybox/dhclient-log/notification-fd b/busybox/dhclient-log/notification-fd new file mode 100644 index 0000000..00750ed --- /dev/null +++ b/busybox/dhclient-log/notification-fd @@ -0,0 +1 @@ +3 diff --git a/busybox/dhclient-log/pipeline-name b/busybox/dhclient-log/pipeline-name new file mode 100644 index 0000000..5d468f9 --- /dev/null +++ b/busybox/dhclient-log/pipeline-name @@ -0,0 +1 @@ +dhclient diff --git a/busybox/dhclient-log/run b/busybox/dhclient-log/run new file mode 100644 index 0000000..ddf5e40 --- /dev/null +++ b/busybox/dhclient-log/run @@ -0,0 +1,10 @@ +#!/bin/execlineb -P + +s6-envuidgid -B root:root +multisubstitute { + importas -u UID UID + importas -u GID GID +} +if { install -dm 750 -o $UID -g $GID /var/log/dhclient } +s6-setuidgid ${UID}:${GID} +exec -c s6-log -d3 -- n4 s500000 T /var/log/dhclient diff --git a/busybox/dhclient-log/type b/busybox/dhclient-log/type new file mode 100644 index 0000000..5883cff --- /dev/null +++ b/busybox/dhclient-log/type @@ -0,0 +1 @@ +longrun -- cgit v1.2.3