]> git.netwichtig.de Git - user/henk/code/puppet/modules/henks_ircservices.git/blob - templates/etc/s6-services/irc-services/log/run.epp
update log filtering
[user/henk/code/puppet/modules/henks_ircservices.git] / templates / etc / s6-services / irc-services / log / run.epp
1 <%- |
2         String $network_name,
3 | -%>
4 <% if versioncmp( $facts['os']['release']['major'], '10' ) >= 1 { -%>
5 #!/usr/bin/execlineb -P
6 <% } else { -%>
7 #!/usr/local/bin/execlineb -P
8 <% } -%>
9
10 define NETWORK_NAME <%= $network_name %>
11 define SERVICES_LOGDIR /var/log/s6/irc-services-${NETWORK_NAME}
12 define SERVICES_MAIL_FIFO ${SERVICES_LOGDIR}/mail_fifo
13
14 fdmove -c 2 1
15 s6-log
16         --
17         -" USERS: .* connected to the network"
18         -" USERS: .* disconnected from the network"
19         -" USERS: .* is now away:"
20         -" USERS: .* is no longer away"
21         -" USERS: .* quit"
22         -" USERS: .* changed nick to"
23         -" USERS: .* changes modes to \\+[ix]+"
24         -" USERS: .* is no longer identified as"
25         -" USERS: .* used IDENTIFY and identified for account"
26         -" USERS: .* is now identified as"
27         -" COMMAND: .* used IDENTIFY and identified for account"
28         -" COMMAND: .* used UNBAN on all channels"
29         -" CHANNEL: .* join #.*"
30         -" M_SASL: .* identified to account .* using SASL"
31         -" Anope [[:digit:].]+, build #[[:digit:]], compiled .*"
32         -" Anope [[:digit:].]+ starting up"
33         -"Using configuration file conf/services.conf"
34         -"Loading Modules\\.\\.\\."
35         -"Loading Databases\\.\\.\\."
36         -"Databases loaded"
37         t
38         s1048576
39         S2147483648
40         !"background { redirfd -r 0 ${SERVICES_MAIL_FIFO} mail -s \"irc-services log: ${NETWORK_NAME}\" -- root } tee ${SERVICES_MAIL_FIFO}"
41         "${SERVICES_LOGDIR}/logs"