amd (163487) | amd (172822) |
---|---|
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 163487 2006-10-18 15:56:11Z flz $ | 4# $FreeBSD: head/etc/rc.d/amd 172822 2007-10-19 22:55:42Z mtm $ |
5# 6 7# PROVIDE: amd 8# REQUIRE: rpcbind ypbind nfsclient cleanvar ldconfig 9# BEFORE: DAEMON 10# KEYWORD: nojail 11 12. /etc/rc.subr --- 16 unchanged lines hidden (view full) --- 29 then 30 force_depend rpcbind || return 1 31 fi 32 33 case ${amd_map_program} in 34 [Nn][Oo] | '') 35 ;; 36 *) | 5# 6 7# PROVIDE: amd 8# REQUIRE: rpcbind ypbind nfsclient cleanvar ldconfig 9# BEFORE: DAEMON 10# KEYWORD: nojail 11 12. /etc/rc.subr --- 16 unchanged lines hidden (view full) --- 29 then 30 force_depend rpcbind || return 1 31 fi 32 33 case ${amd_map_program} in 34 [Nn][Oo] | '') 35 ;; 36 *) |
37 rc_flags="${rc_flags} `eval ${amd_map_program}`" | 37 rc_flags="${rc_flags} `echo $(eval ${amd_map_program})`" |
38 ;; 39 esac 40 41 case "${amd_flags}" in 42 '') 43 if [ ! -r /etc/amd.conf ]; then 44 warn 'amd will not load without arguments' 45 return 1 46 fi 47 ;; 48 *) | 38 ;; 39 esac 40 41 case "${amd_flags}" in 42 '') 43 if [ ! -r /etc/amd.conf ]; then 44 warn 'amd will not load without arguments' 45 return 1 46 fi 47 ;; 48 *) |
49 rc_flags="-p ${rc_flags} > /var/run/amd.pid 2> /dev/null" | 49 rc_flags="-p ${rc_flags}" 50 command_args=" > /var/run/amd.pid 2> /dev/null" |
50 ;; 51 esac 52 return 0 53} 54 55load_rc_config $name 56run_rc_command "$1" | 51 ;; 52 esac 53 return 0 54} 55 56load_rc_config $name 57run_rc_command "$1" |