Add rc.d script for ypldap(8).

This commit is contained in:
Marcelo Araujo 2016-06-06 03:55:00 +00:00
parent 3191e5717d
commit 46b6ecf257
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=301480
2 changed files with 29 additions and 0 deletions

View File

@ -392,6 +392,8 @@ nis_ypxfrd_enable="NO" # Run rpc.ypxfrd at boot time (or NO).
nis_ypxfrd_flags="" # Flags to rpc.ypxfrd (if enabled).
nis_yppasswdd_enable="NO" # Run rpc.yppasswdd at boot time (or NO).
nis_yppasswdd_flags="" # Flags to rpc.yppasswdd (if enabled).
nis_ypldap_enable="NO" # Run ypldap at boot time (or NO).
nis_ypldap_flags="" # Flags to ypldap (if enabled).
### SNMP daemon ###
# Be sure to understand the security implications of running SNMP v1/v2

27
etc/rc.d/ypldap Executable file
View File

@ -0,0 +1,27 @@
#!/bin/sh
#
# $FreeBSD$
#
# PROVIDE: ypldap
# REQUIRE: ypserv
# BEFORE: DAEMON
# KEYWORD: shutdown
. /etc/rc.subr
name="ypldap"
rcvar="nis_ypldap_enable"
load_rc_config $name
command="/usr/sbin/${name}"
command_args="${nis_ypldap_flags}"
start_precmd="ypldap_precmd"
ypldap_precmd()
{
force_depend ypserv nis_server || return 1
}
run_rc_command "$1"