Deleted Added
full compact
ypupdated (98184) ypupdated (101851)
1#!/bin/sh
2#
1#!/bin/sh
2#
3# $FreeBSD: head/etc/rc.d/ypupdated 98184 2002-06-13 22:14:37Z gordon $
3# $FreeBSD: head/etc/rc.d/ypupdated 101851 2002-08-14 05:44:32Z gordon $
4#
5
6# PROVIDE: ypupdated
7# REQUIRE: rpcbind ypserv
8# KEYWORD: FreeBSD
9
10. /etc/rc.subr
11
12name="ypupdated"
13rcvar="rpc_ypupdated_enable"
14command="/usr/sbin/rpc.${name}"
4#
5
6# PROVIDE: ypupdated
7# REQUIRE: rpcbind ypserv
8# KEYWORD: FreeBSD
9
10. /etc/rc.subr
11
12name="ypupdated"
13rcvar="rpc_ypupdated_enable"
14command="/usr/sbin/rpc.${name}"
15required_vars="portmap_enable nis_server_enable"
16start_precmd="rpc_ypupdated_precmd"
17
18rpc_ypupdated_precmd()
19{
15start_precmd="rpc_ypupdated_precmd"
16
17rpc_ypupdated_precmd()
18{
19 if ! checkyesno rpcbind_enable && \
20 ! /etc/rc.d/rpcbind forcestatus 1>/dev/null 2>&1
21 then
22 force_depend rpcbind || return 1
23 fi
24 if ! checkyesno nis_server_enable && \
25 ! /etc/rc.d/ypserv forcestatus 1>/dev/null 2>&1
26 then
27 force_depend ypserv || return 1
28 fi
29
20 _domain=`domainname`
21 if [ -z "$_domain" ]; then
22 warn "domainname(1) is not set."
23 return 1
24 fi
25}
26
27load_rc_config $name
28run_rc_command "$1"
30 _domain=`domainname`
31 if [ -z "$_domain" ]; then
32 warn "domainname(1) is not set."
33 return 1
34 fi
35}
36
37load_rc_config $name
38run_rc_command "$1"