#!/bin/sh

# 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"
