aports/testing/crab-hole/crab-hole.initd
2025-03-16 22:11:56 +00:00

18 lines
352 B
Bash

#!/sbin/openrc-run
name="Crab-Hole DNS Server"
description="A DNS level ad and spy blocker"
command="/usr/bin/crab-hole"
command_background=yes
command_user=crab-hole:crab-hole
capabilities="^cap_net_bind_service"
pidfile="/run/crab-hole.pid"
depend() {
need net
}
start_pre() {
checkpath --directory --owner "$command_user" /var/lib/crab-hole
}