alpine-repos/minoplhy-crowdsec-firewall-bouncer/crowdsec-firewall-bouncer.initd
2025-05-01 23:03:50 +07:00

21 lines
435 B
Plaintext
Executable File

#!/sbin/openrc-run
command=/usr/bin/crowdsec-firewall-bouncer
command_args="-c /etc/crowdsec/bouncers/crowdsec-firewall-bouncer.yaml"
pidfile="/run/${RC_SVCNAME}.pid"
command_background=true
extra_started_commands="reload"
description_reload="Reload configuration"
depend() {
need net
after firewall
use logger
}
reload() {
ebegin "Reloading $RC_SVCNAME"
start-stop-daemon --signal HUP --pidfile "$pidfile"
eend $?
}