X-Git-Url: http://gitweb.hugovil.com/?a=blobdiff_plain;f=stage3%2Fbootscripts%2Fopenldap;h=1487bb09635e04bb4fed8c0cb49ceb4bc65ade72;hb=2121ae9154ff063eef0defe0a9208663062a2d01;hp=2896184f6a0dc6a8ca7494718af0cc8184bb0349;hpb=c40856bcf84d4704a5678d35456ee17e7168da4e;p=hvlinux.git diff --git a/stage3/bootscripts/openldap b/stage3/bootscripts/openldap index 2896184..1487bb0 100755 --- a/stage3/bootscripts/openldap +++ b/stage3/bootscripts/openldap @@ -7,17 +7,21 @@ source /etc/rc.d/init.d/functions log_script_name "$0 $*" +DAEMON=/usr/sbin/slapd +DAEMON_DESC="LDAP server" +DAEMON_OPTS="" + piddir=/srv/ldap/run case "$1" in start) - cmd_run_log_box_warn "Starting LDAP Server" loadproc slapd + cmd_run_log_box_warn "${DAEMON_DESC} start" loadproc ${DAEMON} ;; - + stop) - cmd_run_log_box_warn "Stopping LDAP Server" killproc_path slapd ${piddir} + cmd_run_log_box_warn "${DAEMON_DESC} stop" killproc_path ${DAEMON} ${piddir} ;; - + restart) $0 stop sleep 1 @@ -25,9 +29,9 @@ case "$1" in ;; status) - statusproc_path slapd ${piddir} + statusproc_path ${DAEMON} ${piddir} ;; - + *) echo "Usage: $0 {start|stop|restart|status}" exit ${EXIT_CODE_FAILURE}