dhcp: add basic logging functionality

vlogger should properly set tag and facility identically to logger if
you don't set anything special so it shoud be entirely safe to simply
exec straight into vlogger without explicitly setting those flags.

Fixes #25558
This commit is contained in:
Colin Booth 2021-02-07 13:08:10 -08:00 committed by Érico Nogueira Rolim
parent 675e55ed8e
commit 34d507072d
7 changed files with 7 additions and 1 deletions

View file

@ -0,0 +1 @@
/usr/bin/vlogger

View file

@ -1,3 +1,4 @@
#!/bin/sh
exec 2>&1
[ -r conf ] && . ./conf
exec dhclient ${OPTS:=-d}

View file

@ -0,0 +1 @@
/usr/bin/vlogger

View file

@ -1,4 +1,5 @@
#!/bin/sh
exec 2>&1
[ -r conf ] && . ./conf
touch /var/lib/dhcp/dhcpd.leases
exec dhcpd -f ${OPTS:=-4 -q -pf /run/dhcpd4.pid}

View file

@ -0,0 +1 @@
/usr/bin/vlogger

View file

@ -1,4 +1,5 @@
#!/bin/sh
exec 2>&1
[ -r conf ] && . ./conf
touch /var/lib/dhcp/dhcpd.leases
exec dhcpd -f ${OPTS:=-6 -q -pf /run/dhcpd6.pid}

View file

@ -1,7 +1,7 @@
# Template file for 'dhcp'
pkgname=dhcp
version=4.4.2P1
revision=1
revision=2
wrksrc="dhcp-${version/P/-P}"
build_style=gnu-configure
hostmakedepends="perl tar automake libtool"