ypxfrd revision 98184
1#!/bin/sh
2#
3# $FreeBSD: head/etc/rc.d/ypxfrd 98184 2002-06-13 22:14:37Z gordon $
4#
5
6# PROVIDE: ypxfrd
7# REQUIRE: rpcbind
8# KEYWORD: FreeBSD
9
10. /etc/rc.subr
11
12name="ypxfrd"
13rcvar="nis_ypxfrd_enable"
14command="/usr/sbin/rpc.${name}"
15command_args="${nis_ypxfrd_flags}"
16required_vars="portmap_enable nis_server_enable"
17start_precmd="ypxfrd_precmd"
18
19ypxfrd_precmd()
20{
21        _domain=`domainname`
22        if [ -z "$_domain" ]; then
23                warn "domainname(1) is not set."
24                return 1
25        fi
26}
27
28load_rc_config $name
29run_rc_command "$1"
30