mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-04-12 16:06:42 +02:00
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
18 lines
359 B
Bash
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 $?
|
|
}
|