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:
parent
675e55ed8e
commit
34d507072d
7 changed files with 7 additions and 1 deletions
1
srcpkgs/dhcp/files/dhclient/log/run
Symbolic link
1
srcpkgs/dhcp/files/dhclient/log/run
Symbolic link
|
@ -0,0 +1 @@
|
|||
/usr/bin/vlogger
|
|
@ -1,3 +1,4 @@
|
|||
#!/bin/sh
|
||||
exec 2>&1
|
||||
[ -r conf ] && . ./conf
|
||||
exec dhclient ${OPTS:=-d}
|
||||
|
|
1
srcpkgs/dhcp/files/dhcpd4/log/run
Symbolic link
1
srcpkgs/dhcp/files/dhcpd4/log/run
Symbolic link
|
@ -0,0 +1 @@
|
|||
/usr/bin/vlogger
|
|
@ -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}
|
||||
|
|
1
srcpkgs/dhcp/files/dhcpd6/log/run
Symbolic link
1
srcpkgs/dhcp/files/dhcpd6/log/run
Symbolic link
|
@ -0,0 +1 @@
|
|||
/usr/bin/vlogger
|
|
@ -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}
|
||||
|
|
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue