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

19 lines
381 B
Plaintext
Raw Normal View History

2022-03-21 12:25:55 +00:00
#!/bin/execlineb -P
define LOGGERNAME syslogd
2022-10-18 19:06:48 +00:00
s6-envdir -i /etc/s6/env/path
2022-03-21 12:25:55 +00:00
importas -i PATH PATH
2022-10-18 19:06:48 +00:00
s6-envdir -i /etc/s6/env/logger
2022-03-21 12:25:55 +00:00
importas -i LOGPREFIX LOGPREFIX
2022-10-18 19:06:48 +00:00
s6-envdir -I /etc/s6/env/logger.${LOGGERNAME}
2022-10-18 19:06:48 +00:00
importas -i LOGSIZE LOGSIZE
importas -i LOGARCHIVES LOGARCHIVES
2022-03-21 12:25:55 +00:00
emptyenv
export PATH $PATH
exec s6-log -d3 -- t s${LOGSIZE} n${LOGARCHIVES} ${LOGPREFIX}/${LOGGERNAME}