1#!/bin/sh 2#
| 1#!/bin/sh 2#
|
3# $FreeBSD: head/etc/rc.d/ypxfrd 161532 2006-08-22 14:58:23Z flz $
| 3# $FreeBSD: head/etc/rc.d/ypxfrd 165664 2006-12-30 22:53:20Z yar $
|
4# 5 6# PROVIDE: ypxfrd 7# REQUIRE: rpcbind ypserv 8 9. /etc/rc.subr 10 11name="ypxfrd" 12rcvar="nis_ypxfrd_enable" 13command="/usr/sbin/rpc.${name}" 14start_precmd="ypxfrd_precmd" 15load_rc_config $name 16command_args="${nis_ypxfrd_flags}" 17 18ypxfrd_precmd() 19{
| 4# 5 6# PROVIDE: ypxfrd 7# REQUIRE: rpcbind ypserv 8 9. /etc/rc.subr 10 11name="ypxfrd" 12rcvar="nis_ypxfrd_enable" 13command="/usr/sbin/rpc.${name}" 14start_precmd="ypxfrd_precmd" 15load_rc_config $name 16command_args="${nis_ypxfrd_flags}" 17 18ypxfrd_precmd() 19{
|
| 20 local _domain 21
|
20 if ! checkyesno rpcbind_enable && \ 21 ! /etc/rc.d/rpcbind forcestatus 1>/dev/null 2>&1 22 then 23 force_depend rpcbind || return 1 24 fi 25 if ! checkyesno nis_server_enable && \ 26 ! /etc/rc.d/ypserv forcestatus 1>/dev/null 2>&1 27 then 28 force_depend ypserv || return 1 29 fi 30 31 _domain=`domainname` 32 if [ -z "$_domain" ]; then 33 warn "NIS domainname(1) is not set." 34 return 1 35 fi 36} 37 38run_rc_command "$1"
| 22 if ! checkyesno rpcbind_enable && \ 23 ! /etc/rc.d/rpcbind forcestatus 1>/dev/null 2>&1 24 then 25 force_depend rpcbind || return 1 26 fi 27 if ! checkyesno nis_server_enable && \ 28 ! /etc/rc.d/ypserv forcestatus 1>/dev/null 2>&1 29 then 30 force_depend ypserv || return 1 31 fi 32 33 _domain=`domainname` 34 if [ -z "$_domain" ]; then 35 warn "NIS domainname(1) is not set." 36 return 1 37 fi 38} 39 40run_rc_command "$1"
|