net-analyzer/reaction: new package, add 2.2.0

Signed-off-by: Dale Showers <gentoo@fictx.com>
This commit is contained in:
Dale Showers
2025-08-21 10:15:19 -04:00
parent 85c64ff666
commit a8afef51d2
5 changed files with 469 additions and 0 deletions

View File

@@ -0,0 +1,14 @@
#!/sbin/openrc-run
# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
command="/usr/bin/reaction"
command_args="start --config /etc/reaction.d"
command_background="yes"
pidfile="/run/reaction/reaction.pid"
start_pre() {
install --mode 0750 --directory /var/lib/reaction
install --mode 0750 --directory /run/reaction
}

View File

@@ -0,0 +1,19 @@
# vim: ft=systemd
[Unit]
Description=A daemon that scans program outputs for repeated patterns, and takes action.
Documentation=https://reaction.ppom.me
# Ensure reaction will insert its chain after docker has inserted theirs. Only useful when iptables & docker are used
# After=docker.service
[Service]
ExecStart=/usr/bin/reaction start -c /etc/reaction.d
# Ask systemd to create /var/lib/reaction (/var/lib/ is implicit)
StateDirectory=reaction
# Ask systemd to create /run/reaction at runtime (/run/ is implicit)
RuntimeDirectory=reaction
# Start reaction in its state directory
WorkingDirectory=/var/lib/reaction
[Install]
WantedBy=multi-user.target