#!/bin/sh
#
# $NetBSD: makemandb,v 1.4 2012/08/29 20:34:19 wiz Exp $
#

# PROVIDE: makemandb
# REQUIRE: DAEMON
# BEFORE:  LOGIN

$_rc_subr_loaded . /etc/rc.subr

name="makemandb"
rcvar=$name
required_files="/etc/man.conf /usr/sbin/makemandb"
start_cmd="makemandb_start"
stop_cmd=":"

makemandb_start()
{
	# Initiate update build in the background
	nice -n 5 /usr/sbin/makemandb -Q > /dev/null 2>&1 &
}

load_rc_config $name
run_rc_command "$1"
