1#!/bin/sh 2# 3# $NetBSD: amd,v 1.10 2002/04/29 12:08:17 lukem Exp $
| 1#!/bin/sh 2# 3# $NetBSD: amd,v 1.10 2002/04/29 12:08:17 lukem Exp $
|
4# $FreeBSD: head/etc/rc.d/amd 98486 2002-06-20 08:49:44Z dougb $
| 4# $FreeBSD: head/etc/rc.d/amd 98585 2002-06-21 19:50:01Z dougb $
|
5# 6 7# PROVIDE: amd 8# REQUIRE: rpcbind mountall ypbind nfsclient 9# BEFORE: DAEMON 10# KEYWORD: FreeBSD NetBSD 11 12. /etc/rc.subr 13 14name="amd" 15rcvar=`set_rcvar`
| 5# 6 7# PROVIDE: amd 8# REQUIRE: rpcbind mountall ypbind nfsclient 9# BEFORE: DAEMON 10# KEYWORD: FreeBSD NetBSD 11 12. /etc/rc.subr 13 14name="amd" 15rcvar=`set_rcvar`
|
| 16command="/usr/sbin/${name}"
|
16 17case `${CMD_OSTYPE}` in 18FreeBSD) 19 start_cmd="echo 'Starting amd.'; /usr/sbin/${name} &" 20 start_precmd="amd_precmd" 21 ;; 22NetBSD) 23 command_args='-p -a '$amd_dir' -F /etc/amd.conf >/var/run/amd.pid' 24 required_dirs="$amd_dir" 25 required_files="/etc/amd.conf" 26 required_vars="rpcbind"
| 17 18case `${CMD_OSTYPE}` in 19FreeBSD) 20 start_cmd="echo 'Starting amd.'; /usr/sbin/${name} &" 21 start_precmd="amd_precmd" 22 ;; 23NetBSD) 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"
|
27 command="/usr/sbin/${name}"
| |
28 ;; 29esac 30 31amd_precmd() 32{ 33 case `${CMD_OSTYPE}` in 34 FreeBSD) 35 if ! checkyesno nfs_client_enable ; then 36 force_depend nfsclient || return 1 37 fi 38 39 if ! checkyesno portmap_enable && \
| 28 ;; 29esac 30 31amd_precmd() 32{ 33 case `${CMD_OSTYPE}` in 34 FreeBSD) 35 if ! checkyesno nfs_client_enable ; then 36 force_depend nfsclient || return 1 37 fi 38 39 if ! checkyesno portmap_enable && \
|
40 [ -z "`check_process ${portmap_program}`" ]
| 40 ! /etc/rc.d/rpcbind forcestatus 1>/dev/null 2>&1
|
41 then 42 force_depend rpcbind || return 1 43 fi 44 45 case ${amd_map_program} in 46 [Nn][Oo] | '') 47 ;; 48 *)
--- 22 unchanged lines hidden --- | 41 then 42 force_depend rpcbind || return 1 43 fi 44 45 case ${amd_map_program} in 46 [Nn][Oo] | '') 47 ;; 48 *)
--- 22 unchanged lines hidden --- |