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

15 lines
442 B
Plaintext
Executable File

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