#!/bin/sh
#
# $FreeBSD: branches/2018Q3/sysutils/doinkd/files/doinkd.in 340872 2014-01-24 00:14:07Z mat $
#

# PROVIDE: idled
# REQUIRE: DAEMON
# BEFORE: LOGIN
# KEYWORD: shutdown

#
# Add the following lines to /etc/rc.conf to enable idled:
#
# doinkd_enable="YES"
# doinkd_flags="<set as needed>"
#
# See doinkd(8) for flags
#

. /etc/rc.subr

name=doinkd
rcvar=doinkd_enable

command=/usr/local/sbin/doinkd
required_files=/usr/local/etc/doinkd/doinkd.cf

# set defaults

doinkd_enable=${doinkd_enable:-"NO"}

load_rc_config $name
run_rc_command "$1"
