]> git.netwichtig.de Git - user/henk/code/puppet/modules/henks_ircservices.git/blob - templates/etc/s6-services/irc-services/log/run.epp
refine logging config
[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 LOGDIR /var/log/s6/irc-services-${NETWORK_NAME}
12 define MAIL_FIFO ${LOGDIR}/mail_fifo
13
14 fdmove -c 2 1
15 s6-log
16         --
17         t
18         T
19         s1048576
20         S2147483648
21         n100
22         "${LOGDIR}/full_logs"
23         n1
24         -" USERS: .* connected to the network"
25         -" USERS: .* disconnected from the network"
26         -" USERS: .* is now away:"
27         -" USERS: .* is no longer away"
28         -" USERS: .* quit"
29         -" USERS: .* changed nick to"
30         -" USERS: .* changes modes to \\+[cix]+"
31         -" USERS: .* is no longer identified as"
32         -" USERS: .* used IDENTIFY and identified for account"
33         -" USERS: .* is now identified as"
34         -" COMMAND: .* used IDENTIFY and identified for account"
35         -" COMMAND: .* used UNBAN on all channels"
36         -" CHANNEL: .* join #.*"
37         -" M_SASL: .* identified to account .* using SASL"
38         -" Anope [[:digit:].]+, build #[[:digit:]], compiled .*"
39         -" Anope [[:digit:].]+ starting up"
40         -"Using configuration file conf/services.conf"
41         -"Loading modules\\.\\.\\."
42         -"Loading databases\\.\\.\\."
43         -"Databases loaded"
44         -"Attempting to connect to uplink #[[:digit:]]+ [[:alnum:].-]+ ([[:alnum:]./-]+) with protocol InspIRCd 3"
45         -"Inheriting commands and privs from .* to .*"
46         -"M_HTTPD: Created HTTP server httpd/main"
47         -"Successfully connected to uplink #[[:digit:]]+ [[:alnum:].:-]+"
48         -"Tied oper henk to type Services Root"
49         -"Using IRCd protocol inspircd3"
50         !"background { redirfd -r 0 ${MAIL_FIFO} mail -s \"irc-services log: ${NETWORK_NAME}\" -- root } tee ${MAIL_FIFO}"
51         "${LOGDIR}/logs"