4 <% if versioncmp( $facts['os']['release']['major'], '10' ) >= 1 { -%>
5 #!/usr/bin/execlineb -P
7 #!/usr/local/bin/execlineb -P
10 define NETWORK_NAME <%= $network_name %>
11 define LOGDIR /var/log/s6/irc-services-${NETWORK_NAME}
12 define MAIL_FIFO ${LOGDIR}/mail_fifo
24 -" USERS: .* connected to the network"
25 -" USERS: .* disconnected from the network"
26 -" USERS: .* is now away:"
27 -" USERS: .* is no longer away"
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\\.\\.\\."
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}"