diff options
author | Hendrik Jäger <gitcommit@henk.geekmail.org> | 2024-06-13 13:01:36 +0200 |
---|---|---|
committer | Hendrik Jäger <gitcommit@henk.geekmail.org> | 2024-06-13 13:01:36 +0200 |
commit | cc4694865138bf1ad1b84bbe2a30dc19cbb0dc91 (patch) | |
tree | b7f14a16f977a641a01294cf9708ba2f72d04059 | |
parent | 05aa7f1fbcbcfe80308eeaf018a35088cc54c02c (diff) |
refine logging config
-rw-r--r-- | templates/user_scandir/log/run.epp | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/templates/user_scandir/log/run.epp b/templates/user_scandir/log/run.epp index 37cc89f..991b48f 100644 --- a/templates/user_scandir/log/run.epp +++ b/templates/user_scandir/log/run.epp @@ -8,13 +8,18 @@ <% } -%> define SVUSER <%= $username %> -define SVLOGDIR /var/log/s6/user_scandir_${SVUSER}/logs/ +define LOGDIR /var/log/s6/user_scandir_${SVUSER} +define MAIL_FIFO ${LOGDIR}/mail_fifo fdmove -c 2 1 s6-log + -- t T s1048576 S2147483648 - !"mail -s \"user_sv log: ${SVUSER}\" -- root" - ${SVLOGDIR} + n100 + "${LOGDIR}/full_logs" + n1 + !"background { redirfd -r 0 ${MAIL_FIFO} mail -s \"user_sv log: ${SVUSER}\" -- root } tee ${MAIL_FIFO}" + "${LOGDIR}/logs" |