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