directory-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Neil Hunt <nwh...@gmail.com>
Subject [ApacheDS] Linux startup script error
Date Wed, 03 Feb 2010 13:46:02 GMT
Hello,

I am having major difficulties establishing ApacheDS (1.5.5) as a startup service on Fedora
Linux 12. I have a chkconfig script (/etc/init.d/apacheds) as seen below and it points to
/etc/init.d/apacheds-1.5.5-default. It will not startup on server reboot no matter what the
chkconfig parameters are. However if I manually run "/etc/init.d/apacheds start" from the
terminal it starts up no problem. On system startup, the apacheds log gives me:

ERROR [org.apache.directory.daemon.Bootstrapper] - Recvd Event: 204

Thanks in advance,
Neil

script:

#!/bin/sh
#
# apacheds
#
# chkconfig: 23456 20 06 
# description: Starts up the LDAP Server
# 
# 
# 

# source function library
. /etc/init.d/functions

username=${USER}
RETVAL=$?


start(){
	echo $"Starting LDAP"
	if [ "$username" = "root" ]; then
		cd /etc/init.d;
		/etc/init.d/apacheds-1.5.5-default start
	else
		/bin/su - root -c "cd /etc/init.d; /etc/init.d/apacheds-1.5.5-default start"
	fi
	RETVAL=$?
	return ${RETVAL}

}
stop(){
....}
restart(){
}

case "$1" in
...

esac

exit $RETVAL


Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message