Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

dhcp: Allow USE flag configuration of s6-log args

Useful for managing system specific limits on diskspace usage for log files.

Signed-off-by: Esben Haabendal <esben@haabendal.dk>
  • Loading branch information...
esben committed Aug 24, 2018
1 parent a3bf480 commit d284c7a22482cd38a6d89fc77fe9adbd7a277852
Showing with 8 additions and 1 deletion.
  1. +7 −0 recipes/dhcp/dhcp4.inc
  2. +1 −1 recipes/dhcp/files/dhcpd-log.run
@@ -109,3 +109,10 @@ SRC_URI += "file://dhcpd.run file://dhcpd-log.run file://dhcpd-log.notification-
DEFAULT_USE_dhcpd_s6rc_dependencies = "dhcpd-log net"
RECIPE_FLAGS += "dhcpd_s6rc_dependencies"
FILES_${PN}-server += "${s6rcsrcdir}"

RECIPE_FLAGS += "dhcpd_log_args"
DEFAULT_USE_dhcpd_log_args = "s131072"
do_configure_s6_log() {
sed -i -e "s|__args__|${USE_dhcpd_log_args}|" ${SRCDIR}/dhcpd-log.run
}
do_configure[postfuncs] += "do_configure_s6_log"
@@ -8,4 +8,4 @@ s6-setuidgid nobody
if { fdmove 1 6 s6-echo ok }
fdclose 6
exec -c
s6-log -b -- s131072 t /var/log/dhcpd
s6-log -b -- __args__ t /var/log/dhcpd

0 comments on commit d284c7a

Please sign in to comment.
You can’t perform that action at this time.