1#!/bin/sh 2# 3# 4 5# PROVIDE: ypldap 6# REQUIRE: ypserv 7# BEFORE: DAEMON 8# KEYWORD: shutdown 9 10. /etc/rc.subr 11 12name="ypldap" 13rcvar="nis_ypldap_enable" 14 15: ${ypldap_svcj_options:="net_basic"} 16 17load_rc_config $name 18 19command="/usr/sbin/${name}" 20command_args="${nis_ypldap_flags}" 21 22start_precmd="ypldap_precmd" 23 24ypldap_precmd() 25{ 26 force_depend ypserv nis_server || return 1 27} 28run_rc_command "$1" 29