0cf0e19d7abb0e7659df6d191269f96b3ffe7f45 640 |
|
25-Oct-2006 |
neil_a_wilson |
Make several changes to administrative shell scripts provided with OpenDS.
All of these changes fall under the blanket of issue 882, but are also
associated with a number of individual sub-issues.
The changes include:
- Create new "_client-script.sh" and "_server-script.sh" shell scripts that
hold the majority of the logic required to launch the client-side and
server-side tools (Issue #873).
- Explicitly set the PATH, LD_LIBRARY_PATH, and LD_PRELOAD (and the 32-bit and
64-bit specific variants of LD_LIBRARY_PATH and LD_PRELOAD) to ensure better
security and more consistent behavior when invoking external commands
(Issue #607).
- Fix potential problems that could arise if either OpenDS or the Java runtime
are installed in a path that contains spaces (Issue #820).
- Update the start-ds.sh script so that it always creates a PID file, whether
running in the foreground or in the background (Issue #859).
- Update the start-ds.sh script so that when running in the background it will
not exit until it confirms that the server is actually running. It will also
display any messages written to standard output/standard error during
startup (Issue #590).
- Update the stop-ds.sh script so that it can either perform a local stop (via
kill with the TERM signal) or a remote stop (over LDAP using the shutdown
task). If the script is invoked with no arguments and there is a local PID
file present, then it will be a local stop via kill, and it will wait until
the server actually has stopped before exiting. Otherwise it will be a
remote stop over LDAP (Issue #871). |