pkgsrc/databases/openldap-server/files/slapd.sh
jperkin a6282513e0 Add SMF manifest. Move rc.d script to openldap-server files directory
for consistency and avoid redundant FILESDIR shared between packages.
2016-06-17 13:56:53 +00:00

19 lines
357 B
Bash

#!@RCD_SCRIPTS_SHELL@
#
# $NetBSD: slapd.sh,v 1.1 2016/06/17 13:56:53 jperkin Exp $
#
# OpenLDAP standalone LDAP daemon
#
# PROVIDE: slapd
# REQUIRE: DAEMON
. /etc/rc.subr
name="slapd"
rcvar=${name}
command="@PREFIX@/libexec/${name}"
required_files="@OPENLDAP_ETCDIR@/${name}.conf"
command_args="-u @SLAPD_USER@"
load_rc_config $name
run_rc_command "$1"