diff options
author | Hendrik Jäger <gitcommit@henk.geekmail.org> | 2024-06-13 13:01:09 +0200 |
---|---|---|
committer | Hendrik Jäger <gitcommit@henk.geekmail.org> | 2024-06-13 13:01:09 +0200 |
commit | 5a2ccc91b475b32e549840555986138c633d6282 (patch) | |
tree | 9effa575003d23cffb0eead0c339fd285fdfc503 | |
parent | 51b547f2e3e69cbc726f27a7b3cf032b14a5c8c0 (diff) |
refine logging config
-rw-r--r-- | templates/etc/s6-services/irc-services/log/run.epp | 19 |
1 files changed, 11 insertions, 8 deletions
diff --git a/templates/etc/s6-services/irc-services/log/run.epp b/templates/etc/s6-services/irc-services/log/run.epp index 4f56d78..21266a8 100644 --- a/templates/etc/s6-services/irc-services/log/run.epp +++ b/templates/etc/s6-services/irc-services/log/run.epp @@ -8,12 +8,19 @@ <% } -%> define NETWORK_NAME <%= $network_name %> -define SERVICES_LOGDIR /var/log/s6/irc-services-${NETWORK_NAME} -define SERVICES_MAIL_FIFO ${SERVICES_LOGDIR}/mail_fifo +define LOGDIR /var/log/s6/irc-services-${NETWORK_NAME} +define MAIL_FIFO ${LOGDIR}/mail_fifo fdmove -c 2 1 s6-log -- + t + T + s1048576 + S2147483648 + n100 + "${LOGDIR}/full_logs" + n1 -" USERS: .* connected to the network" -" USERS: .* disconnected from the network" -" USERS: .* is now away:" @@ -40,9 +47,5 @@ s6-log -"Successfully connected to uplink #[[:digit:]]+ [[:alnum:].:-]+" -"Tied oper henk to type Services Root" -"Using IRCd protocol inspircd3" - t - T - s1048576 - S2147483648 - !"background { redirfd -r 0 ${SERVICES_MAIL_FIFO} mail -s \"irc-services log: ${NETWORK_NAME}\" -- root } tee ${SERVICES_MAIL_FIFO}" - "${SERVICES_LOGDIR}/logs" + !"background { redirfd -r 0 ${MAIL_FIFO} mail -s \"irc-services log: ${NETWORK_NAME}\" -- root } tee ${MAIL_FIFO}" + "${LOGDIR}/logs" |