aports/testing/crowdsec/crowdsec.initd
tetsumaki 6edfb57467 testing/crowdsec: add openrc service, patterns, license, many plugins and many minor adjustements
Adding :

- OpenRC Service
- Licence file
- Required patterns
- Plugin: email notification
- Plugin: http notification
- Plugin: slack notification
- Plugin: splunk notification
- BUILD_TAG for proper version number crowdsec -version
- And many minor adjustements
2022-11-19 06:51:10 +00:00

18 lines
359 B
Bash

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