3 # $NetBSD: amd,v 1.10 2002/04/29 12:08:17 lukem Exp $
8 # REQUIRE: rpcbind mountall ypbind nfsclient
10 # KEYWORD: FreeBSD NetBSD
16 command="/usr/sbin/${name}"
20 start_precmd="amd_precmd"
24 command_args='-p -a '$amd_dir' -F /etc/amd.conf >/var/run/amd.pid'
25 required_dirs="$amd_dir"
26 required_files="/etc/amd.conf"
27 required_vars="rpcbind"
35 if ! checkyesno nfs_client_enable ; then
36 force_depend nfsclient || return 1
39 if ! checkyesno rpcbind_enable && \
40 ! /etc/rc.d/rpcbind forcestatus 1>/dev/null 2>&1
42 force_depend rpcbind || return 1
45 case ${amd_map_program} in
49 rc_flags="${rc_flags} `eval ${amd_map_program}`"
53 case "${amd_flags}" in
55 if [ ! -r /etc/amd.conf ]; then
56 warn 'amd will not load without arguments'
61 rc_flags="-p ${rc_flags} > /var/run/amd.pid 2> /dev/null" \