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

19 lines
381 B
Plaintext
Executable File

#!/bin/execlineb -P
define LOGGERNAME syslogd
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}