projects
/
hvlinux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add emacsrc bitbake configuration
[hvlinux.git]
/
stage3
/
bootscripts
/
openldap
diff --git
a/stage3/bootscripts/openldap
b/stage3/bootscripts/openldap
index
2896184
..
1487bb0
100755
(executable)
--- a/
stage3/bootscripts/openldap
+++ b/
stage3/bootscripts/openldap
@@
-7,17
+7,21
@@
source /etc/rc.d/init.d/functions
log_script_name "$0 $*"
log_script_name "$0 $*"
+DAEMON=/usr/sbin/slapd
+DAEMON_DESC="LDAP server"
+DAEMON_OPTS=""
+
piddir=/srv/ldap/run
case "$1" in
start)
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)
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
restart)
$0 stop
sleep 1
@@
-25,9
+29,9
@@
case "$1" in
;;
status)
;;
status)
- statusproc_path
slapd
${piddir}
+ statusproc_path
${DAEMON}
${piddir}
;;
;;
-
+
*)
echo "Usage: $0 {start|stop|restart|status}"
exit ${EXIT_CODE_FAILURE}
*)
echo "Usage: $0 {start|stop|restart|status}"
exit ${EXIT_CODE_FAILURE}