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

18 lines
369 B
Plaintext
Executable File

#!/bin/execlineb -P
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.syslogd
importas -i LOGSIZE LOGSIZE
importas -i LOGARCHIVES LOGARCHIVES
emptyenv
export PATH $PATH
define LOGGERNAME syslogd
s6-log -d3 -- t s${LOGSIZE} n${LOGARCHIVES} ${LOGPREFIX}/${LOGGERNAME}