mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-21 21:13:27 -04:00
net-analyzer/reaction: new package, add 2.2.0
Signed-off-by: Dale Showers <gentoo@fictx.com>
This commit is contained in:
14
net-analyzer/reaction/files/init.d/reaction
Normal file
14
net-analyzer/reaction/files/init.d/reaction
Normal 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
|
||||
}
|
||||
19
net-analyzer/reaction/files/systemd/reaction.service
Normal file
19
net-analyzer/reaction/files/systemd/reaction.service
Normal 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
|
||||
Reference in New Issue
Block a user