Permalink
Browse files

openvpn: 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 0a00fa6 commit 26cedf60a26ccdcf5c12688ae5598973e8d905f6
Showing with 8 additions and 1 deletion.
  1. +1 −1 recipes/openvpn/files/openvpn-log.run
  2. +7 −0 recipes/openvpn/openvpn.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/openvpn
s6-log -b -- __args__ t /var/log/openvpn
@@ -54,3 +54,10 @@ do_install[postfuncs] += "do_install_s6"
PACKAGES =+ "${PN}-s6"
FILES_${PN}-s6 = "${sysconfdir}/rc.hooks ${s6rcsrcdir}"
RDEPENDS_${PN}:>USE_s6rc += " ${PN}-s6"
RECIPE_FLAGS += "openvpn_log_args"
DEFAULT_USE_openvpn_log_args = "s131072"
do_configure_s6_log() {
sed -i -e "s|__args__|${USE_openvpn_log_args}|" ${SRCDIR}/openvpn-log.run
}
do_configure[postfuncs] += "do_configure_s6_log"

0 comments on commit 26cedf6

Please sign in to comment.