I installed the .DEB package of ApacheDS 1.5.7 on a clean Ubuntu 11.04 server. I got the DEB from here. It installed and started itself automatically and was running, but I don't know how to start/stop/restart it. I don't know if it's set to auto-run at boot either. The official documentation doesn't actually say how to either.
I changed the port in /var/lib/apacheds-1.5.7/default/conf/server.xml per the instructions, but the instructions just say "restart the server", no indication of how that is done.
There is an init file, /etc/init.d/apacheds-1.5.7-default, which seems like it would be what I want but:
root@(none):~# /etc/init.d/apacheds-1.5.7-default start
Starting Apache Directory Server - default...
root@(none):~# /etc/init.d/apacheds-1.5.7-default stop
Stopping Apache Directory Server - default...
Apache Directory Server - default was not running
It appears as if the start command, while giving no errors, is not actually starting DS?
Attempting to access the server from a Client Machine Running Apache Directory Studio produces a "connection refused" error. I changed the port back to what it was and doubed checked for errors in the config file, but I've been unable to start the Directory Server again. Rebooting the server did not cause it to auto-start.
I found no folder in /var/log calle "apacheds" or similar, and don't see any entries in syslog.
How do I start/stop/restart DS and confirm if it is or is not running?
UPDATE:
java -version
shows:
java version "1.6.0_26"
Java(TM) SE Runtime Environment (build 1.6.0_26-b03)
Java HotSpot(TM) 64-Bit Server VM (build 20.1-b02, mixed mode)
Start and stop should work with:
root@(none):~# /etc/init.d/apacheds-1.5.7-default start|stop
How to confirm:
usually when apacheds is started a file is created in
/var/run/apacheds/default/default.pid
with the pid of apacheDS, check the content of this file. You can door
ps -fea | grep -i apacheds
For standalone installations of ApacheDS, the run directory is
... and so to reset the default pid file do:
(replace -2.0.0-M16 with your version, of course)