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 SERVICES_LOGDIR /var/log/s6/irc-services-${NETWORK_NAME}
12 define SERVICES_MAIL_FIFO ${SERVICES_LOGDIR}/mail_fifo
17 -" USERS: .* connected to the network"
18 -" USERS: .* disconnected from the network"
19 -" USERS: .* is now away:"
20 -" USERS: .* is no longer away"
22 -" USERS: .* changed nick to"
23 -" USERS: .* changes modes to \\+[cix]+"
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\\.\\.\\."
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"
47 !"background { redirfd -r 0 ${SERVICES_MAIL_FIFO} mail -s \"irc-services log: ${NETWORK_NAME}\" -- root } tee ${SERVICES_MAIL_FIFO}"
48 "${SERVICES_LOGDIR}/logs"