NetBSD/etc/rc.d/makemandb

26 lines
446 B
Bash
Executable File

#!/bin/sh
#
# $NetBSD: makemandb,v 1.3 2012/06/17 02:13:13 isaki 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"