Deleted Added
full compact
ypbind (136224) ypbind (165664)
1#!/bin/sh
2#
3# $NetBSD: ypbind,v 1.5 2002/03/22 04:34:01 thorpej Exp $
1#!/bin/sh
2#
3# $NetBSD: ypbind,v 1.5 2002/03/22 04:34:01 thorpej Exp $
4# $FreeBSD: head/etc/rc.d/ypbind 136224 2004-10-07 13:55:26Z mtm $
4# $FreeBSD: head/etc/rc.d/ypbind 165664 2006-12-30 22:53:20Z yar $
5#
6
7# PROVIDE: ypbind
8# REQUIRE: ypserv
9# BEFORE: DAEMON
10
11. /etc/rc.subr
12
13name="ypbind"
14command="/usr/sbin/${name}"
15start_precmd="ypbind_precmd"
16
17load_rc_config $name
18rcvar="nis_client_enable"
19command_args="${nis_client_flags}"
20
21ypbind_precmd()
22{
5#
6
7# PROVIDE: ypbind
8# REQUIRE: ypserv
9# BEFORE: DAEMON
10
11. /etc/rc.subr
12
13name="ypbind"
14command="/usr/sbin/${name}"
15start_precmd="ypbind_precmd"
16
17load_rc_config $name
18rcvar="nis_client_enable"
19command_args="${nis_client_flags}"
20
21ypbind_precmd()
22{
23 local _domain
24
23 if ! checkyesno rpcbind_enable && \
24 ! /etc/rc.d/rpcbind forcestatus 1>/dev/null 2>&1
25 then
26 force_depend rpcbind || return 1
27 fi
28
29 _domain=`domainname`
30 if [ -z "$_domain" ]; then
31 warn "NIS domainname(1) is not set."
32 return 1
33 fi
34}
35
36run_rc_command "$1"
25 if ! checkyesno rpcbind_enable && \
26 ! /etc/rc.d/rpcbind forcestatus 1>/dev/null 2>&1
27 then
28 force_depend rpcbind || 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"