]> 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         -" CHANNEL: .* join #.*"
29         -" Anope [[:digit:].]+, build #[[:digit:]], compiled .*"
30         -" Anope [[:digit:].]+ starting up"
31         -"Using configuration file conf/services.conf"
32         -"Loading Modules\\.\\.\\."
33         -"Loading Databases\\.\\.\\."
34         -"Databases loaded"
35         t
36         s1048576
37         S2147483648
38         !"background { redirfd -r 0 ${SERVICES_MAIL_FIFO} mail -s \"irc-services log: ${NETWORK_NAME}\" -- root } tee ${SERVICES_MAIL_FIFO}"
39         "${SERVICES_LOGDIR}/logs"