ports/main/nnd-s6-services/tmpl/logger

17 lines
413 B
Plaintext
Executable File

#!/bin/execlineb -W
importas -i NAME NAME
s6-envdir -I /etc/s6/env/logger
importas -D "/var/log/" PREFIX PREFIX
importas -D 1000000 SIZE DEFAULTSIZE
importas -D 20 ARCHIVES DEFAULTARCHIVES
s6-envdir -I /etc/s6/env/logger.${NAME}
importas -D $DEFAULTSIZE SIZE SIZE
importas -D $DEFAULTARCHIVES ARCHIVES ARCHIVES
s6-envdir -I /etc/s6/env/path
emptyenv -p
s6-log -d3 -- t s${SIZE} n${ARCHIVES} ${PREFIX}/${NAME}