1#!/bin/sh 2#
| 1#!/bin/sh 2#
|
3# $NetBSD: yppasswdd,v 1.4 2000/06/02 22:54:13 fvdl Exp $
| 3# $NetBSD: yppasswdd,v 1.6 2002/03/22 04:34:01 thorpej Exp $ 4# $FreeBSD: head/etc/rc.d/yppasswdd 98184 2002-06-13 22:14:37Z gordon $
|
4# 5 6# PROVIDE: yppasswdd 7# REQUIRE: ypserv ypbind
| 5# 6 7# PROVIDE: yppasswdd 8# REQUIRE: ypserv ypbind
|
| 9# BEFORE: LOGIN 10# KEYWORD: FreeBSD NetBSD
|
8 9. /etc/rc.subr 10 11name="yppasswdd"
| 11 12. /etc/rc.subr 13 14name="yppasswdd"
|
12rcvar=$name 13command="/usr/sbin/rpc.${name}" 14required_vars="rpcbind ypserv"
| 15command="/usr/sbin/rpc.{name}"
|
15start_precmd="yppasswdd_precmd" 16
| 16start_precmd="yppasswdd_precmd" 17
|
| 18case `${CMD_OSTYPE}` in 19FreeBSD) 20 rcvar="nis_yppasswdd_enable" 21 required_vars="portmap_enable nis_server_enable" 22 command_args="${nis_yppasswdd_flags}" 23 ;; 24NetBSD) 25 rcvar=$name 26 required_vars="rpcbind ypserv" 27 ;; 28esac 29
|
17yppasswdd_precmd() 18{ 19 _domain=`domainname` 20 if [ -z "$_domain" ]; then 21 warn "domainname(1) is not set." 22 return 1 23 fi 24} 25 26load_rc_config $name 27run_rc_command "$1"
| 30yppasswdd_precmd() 31{ 32 _domain=`domainname` 33 if [ -z "$_domain" ]; then 34 warn "domainname(1) is not set." 35 return 1 36 fi 37} 38 39load_rc_config $name 40run_rc_command "$1"
|