]> git.netwichtig.de Git - user/henk/code/puppet/modules/henks_ircservices.git/blob - templates/etc/s6-services/irc-services/log/run.epp
update log filter
[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         -"Attempting to connect to uplink #[[:digit:]]+ [[:alnum:].-]+ ([[:alnum:]./-]+) with protocol InspIRCd 3"
38         -"Inheriting commands and privs from .* to .*"
39         -"M_HTTPD: Created HTTP server httpd/main"
40         -"Successfully connected to uplink #[[:digit:]]+ [[:alnum:].:-]+"
41         -"Tied oper henk to type Services Root"
42         -"Using IRCd protocol inspircd3"
43         t
44         s1048576
45         S2147483648
46         !"background { redirfd -r 0 ${SERVICES_MAIL_FIFO} mail -s \"irc-services log: ${NETWORK_NAME}\" -- root } tee ${SERVICES_MAIL_FIFO}"
47         "${SERVICES_LOGDIR}/logs"