Permalink
Browse files

ntp: 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 eb63d0a commit a1f5aba5e323e150bf54e634bee7320e27b550c4
Showing with 8 additions and 1 deletion.
  1. +1 −1 recipes/ntp/files/ntpd-log.run
  2. +7 −0 recipes/ntp/ntp.inc
@@ -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/ntpd
s6-log -b -- __args__ t /var/log/ntpd
View
@@ -114,3 +114,10 @@ SRC_URI += "file://ntpd.run file://ntpd-log.run file://ntpd-log.notification-fd"
RECIPE_FLAGS += "ntpd_s6rc_dependencies"
DEFAULT_USE_ntpd_s6rc_dependencies = "ntpd-log net"
FILES_${PN}-ntpd += "${s6rcsrcdir}"
RECIPE_FLAGS += "ntpd_log_args"
DEFAULT_USE_ntpd_log_args = "s131072"
do_configure_s6_log() {
sed -i -e "s|__args__|${USE_ntpd_log_args}|" ${SRCDIR}/ntpd-log.run
}
do_configure[postfuncs] += "do_configure_s6_log"

0 comments on commit a1f5aba

Please sign in to comment.