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

17 lines
413 B
Plaintext
Raw Normal View History

2022-12-08 08:09:51 +00:00
#!/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
2023-02-01 08:50:08 +00:00
s6-envdir -I /etc/s6/env/path
emptyenv -p
2022-12-08 08:09:51 +00:00
2023-02-01 08:50:08 +00:00
s6-log -d3 -- t s${SIZE} n${ARCHIVES} ${PREFIX}/${NAME}