ports/main/nnd-s6-services/rc/logger.udhcpc/run

19 lines
380 B
Plaintext
Executable File

#!/bin/execlineb -P
define LOGGERNAME udhcpc
s6-envdir -i /etc/s6/env/path
importas -i PATH PATH
s6-envdir -i /etc/s6/env/logger
importas -i LOGPREFIX LOGPREFIX
s6-envdir -I /etc/s6/env/logger.${LOGGERNAME}
importas -i LOGSIZE LOGSIZE
importas -i LOGARCHIVES LOGARCHIVES
emptyenv
export PATH $PATH
exec s6-log -d3 -- t s${LOGSIZE} n${LOGARCHIVES} ${LOGPREFIX}/${LOGGERNAME}