Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/etc/rc.d Allows you to disable it if makemandb=NO in rc.conf.
details: https://anonhg.NetBSD.org/src/rev/131c71c73fc2
branches: trunk
changeset: 779699:131c71c73fc2
user: isaki <isaki%NetBSD.org@localhost>
date: Tue Jun 12 02:25:29 2012 +0000
description:
Allows you to disable it if makemandb=NO in rc.conf.
Thanks tsutsui@ and Yasushi Oshima.
diffstat:
etc/rc.d/makemandb | 9 ++++++---
1 files changed, 6 insertions(+), 3 deletions(-)
diffs (31 lines):
diff -r 5085c1d14b68 -r 131c71c73fc2 etc/rc.d/makemandb
--- a/etc/rc.d/makemandb Mon Jun 11 23:28:19 2012 +0000
+++ b/etc/rc.d/makemandb Tue Jun 12 02:25:29 2012 +0000
@@ -1,6 +1,6 @@
#!/bin/sh
#
-# $NetBSD: makemandb,v 1.1 2012/02/07 19:13:30 joerg Exp $
+# $NetBSD: makemandb,v 1.2 2012/06/12 02:25:29 isaki Exp $
#
# PROVIDE: makemandb
@@ -10,14 +10,17 @@
$_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 &
+ if checkyesno $rcvar; then
+ # Initiate update build in the background
+ nice -n 5 /usr/sbin/makemandb -q > /dev/null 2>&1 &
+ fi
}
load_rc_config $name
Home |
Main Index |
Thread Index |
Old Index