#!/sbin/openrc-run
name="abused"
description="Abuse mitigation daemon"
supervisor=supervise-daemon
command=/usr/bin/abused
command_user="abused:abused"
pidfile="/run/${RC_SVCNAME}.pid"

start_pre() {
	[ -n "$output_log" ] && checkpath -f "$output_log" \
		-m 644 -o abused:abused
	[ -n "$error_log" ] && checkpath -f "$error_log" \
		-m 644 -o abused:abused
}
