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

netbase: 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 d284c7a commit eb63d0aee17f94046e0cf5e47c0fe30e8bdfac8e
Showing with 8 additions and 1 deletion.
  1. +7 −0 recipes/netbase/netbase.inc
  2. +1 −1 recipes/netbase/netbase/network-log.run
@@ -75,6 +75,13 @@ S6RC_LONGRUN_SERVICES += "network-log"
SRC_URI += "file://network-log.run file://network-log.notification-fd"
RECIPE_FLAGS += "network_log_s6rc_dependencies"

RECIPE_FLAGS += "network_log_args"
DEFAULT_USE_network_log_args = "s131072"
do_configure_s6_log() {
sed -i -e "s|__args__|${USE_network_log_args}|" ${SRCDIR}/network-log.run
}
do_configure[postfuncs] += "do_configure_s6_log"

# Service for doing "ifup -a" and "ifdown -a"
S6RC_ONESHOT_SERVICES += "net-auto"
SRC_URI_S6RC += "file://net-auto.up file://net-auto.down"
@@ -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/network
s6-log -b -- __args__ t /var/log/network

0 comments on commit eb63d0a

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