3 # $NetBSD: amd,v 1.10 2002/04/29 12:08:17 lukem Exp $
4 # $FreeBSD: src/etc/rc.d/amd,v 1.9 2002/10/12 10:31:31 schweikh Exp $
5 # $DragonFly: src/etc/rc.d/amd,v 1.2 2003/11/19 10:32:45 eirikn Exp $
9 # REQUIRE: rpcbind mountall ypbind nfsclient
11 # KEYWORD: DragonFly FreeBSD NetBSD
17 command="/usr/sbin/${name}"
21 start_precmd="amd_precmd"
25 start_precmd="amd_precmd"
29 command_args='-p -a '$amd_dir' -F /etc/amd.conf >/var/run/amd.pid'
30 required_dirs="$amd_dir"
31 required_files="/etc/amd.conf"
32 required_vars="rpcbind"
40 if ! checkyesno nfs_client_enable; then
41 force_depend nfsclient || return 1
44 if ! checkyesno rpcbind_enable && \
45 ! /etc/rc.d/rpcbind forcestatus 1>/dev/null 2>&1
47 force_depend rpcbind || return 1
50 case ${amd_map_program} in
54 rc_flags="${rc_flags} `eval ${amd_map_program}`"
58 case "${amd_flags}" in
60 if [ ! -r /etc/amd.conf ]; then
61 warn 'amd will not load without arguments'
69 if ! checkyesno nfs_client_enable; then
70 force_depend nfsclient || return 1
73 if ! checkyesno rpcbind_enable && \
74 ! /etc/rc.d/rpcbind forcestatus 1>/dev/null 2>&1
76 force_depend rpcbind || return 1
79 case ${amd_map_program} in
83 rc_flags="${rc_flags} `eval ${amd_map_program}`"
87 case "${amd_flags}" in
89 if [ ! -r /etc/amd.conf ]; then
90 warn 'amd will not load without arguments'