You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@directory.apache.org by Stefan Zoerner <sz...@apache.org> on 2007/01/31 21:06:09 UTC

Starting ApacheDS 1.0 on Debian Linux

Hi all!

Michael has problems if he tries to start ApacheDS on a Debian Linux. I 
only have Solaris boxes here. Any idea? seems to be something with the 
shell, see below ...

> jetzt wollte ich das Ganze mal ausprobieren.
> 1) Verusch mit dem Debian-Paket apacheds_1.0.0-1_i386.deb
> ein /etc/init.d/apacheds liefert folgendes:
> 
> root@king:~# /etc/init.d/apacheds start
> JAVA_HOME=/usr/lib/java
> APACHEDS_HOME=/usr/local/apacheds-1.0.0
> CLASSPATH=:/usr/lib/java/lib/tools.jar:/usr/local/apacheds-1.0.0/bin/bootstrapper.jar:/usr/local/apacheds-1.0.0/bin/logger.jar:/usr/local/apacheds-1.0.0/bin/daemon.jar 
> 
> Starting apacheds server: /etc/init.d/apacheds: line 155: success: 
> command not found
> /etc/init.d/apacheds: line 156: failure: command not found
> 
> Mit der java-Version:
> java -version
> java version "1.5.0_10"
> Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_10-b03)
> Java HotSpot(TM) Client VM (build 1.5.0_10-b03, mixed mode, sharing)
> 

Thanks in advance + Greetings from Hamburg,
     Stefan

---8<---

Stefan Zoerner (szoerner@apache.org)
Apache Directory Project
Committer :: PMC Member


Re: Starting ApacheDS 1.0 on Debian Linux

Posted by Stefan Seelmann <se...@apache.org>.
Hi Stefan, Hi Michael

I checked this deb:
http://www.apache.org/dist/directory/apacheds/stable/1.0/1.0.0/apacheds_1.0.0-1_i386.deb

The init script in the deb differs from to the script installed by the
installer. Here is the diff, I removed my custom changes:

---------------------------------------------------------
$ diff apacheds /etc/init.d/apacheds
155,156c160,161
<         [ "$RETVAL" -eq 0 ] && success $"apacheds server startup" || \
<              failure $"apacheds server start"
---
>         [ "$RETVAL" -eq 0 ] && echo successful apacheds server startup
|| \
>              echo failure apacheds server start
186,187c191,192
<         [ "$RETVAL" -eq 0 ] && success $"apacheds server shutdown" || \
<              failure $"apacheds server shutdown"
---
>         [ "$RETVAL" -eq 0 ] && echo successful apacheds server
shutdown || \
>              echo failure apacheds server shutdown
---------------------------------------------------------

So a quick fix should be to add the missing "echo" commands in
/etc/init.d/apacheds

If it works we should patch the published deb.

Regards,
(another) Stefan


Stefan Zoerner schrieb:
> Hi all!
>
> Michael has problems if he tries to start ApacheDS on a Debian Linux.
> I only have Solaris boxes here. Any idea? seems to be something with
> the shell, see below ...
>
>> jetzt wollte ich das Ganze mal ausprobieren.
>> 1) Verusch mit dem Debian-Paket apacheds_1.0.0-1_i386.deb
>> ein /etc/init.d/apacheds liefert folgendes:
>>
>> root@king:~# /etc/init.d/apacheds start
>> JAVA_HOME=/usr/lib/java
>> APACHEDS_HOME=/usr/local/apacheds-1.0.0
>> CLASSPATH=:/usr/lib/java/lib/tools.jar:/usr/local/apacheds-1.0.0/bin/bootstrapper.jar:/usr/local/apacheds-1.0.0/bin/logger.jar:/usr/local/apacheds-1.0.0/bin/daemon.jar
>>
>> Starting apacheds server: /etc/init.d/apacheds: line 155: success:
>> command not found
>> /etc/init.d/apacheds: line 156: failure: command not found
>>
>> Mit der java-Version:
>> java -version
>> java version "1.5.0_10"
>> Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_10-b03)
>> Java HotSpot(TM) Client VM (build 1.5.0_10-b03, mixed mode, sharing)
>>
>
> Thanks in advance + Greetings from Hamburg,
>     Stefan
>
> ---8<---
>
> Stefan Zoerner (szoerner@apache.org)
> Apache Directory Project
> Committer :: PMC Member