#!/bin/sh

# PROVIDE: adguardhome
# REQUIRE: DAEMON
# BEFORE:  LOGIN

. /etc/rc.subr

name="AdGuardHome"
rcvar="adguardhome"
command="/usr/pkg/bin/${name}"
command_args="--no-check-update -c /usr/pkg/etc/adguardhome/AdGuardHome.yaml -w /usr/pkg/libdata/adguardhome --pidfile /var/run/${name}.pid -l syslog &"
pidfile="/var/run/${name}.pid"

load_rc_config $name
run_rc_command "$1"
