projects/aports·blob master · refs

18 lines · 359 B

1#!/sbin/openrc-run
2
3command=/usr/bin/crowdsec
4command_args="-c /etc/crowdsec/config.yaml"
5pidfile="/run/${RC_SVCNAME}.pid"
6command_background=true
7extra_started_commands="reload"
8description_reload="Reload configuration"
9
10depend() {
11 after firewall
12}
13
14reload() {
15 ebegin "Reloading $RC_SVCNAME"
16 start-stop-daemon --signal HUP --pidfile "$pidfile"
17 eend $?
18}