org.opends.server.tools
Class CreateRCScript

java.lang.Object
  extended by org.opends.server.tools.CreateRCScript

public class CreateRCScript
extends java.lang.Object

This program provides a tool that may be used to generate an RC script that can be used to start, stop, and restart the Directory Server, as well as to display its current status. It is only intended for use on UNIX-based systems that support the use of RC scripts in a location like /etc/init.d.


Constructor Summary
CreateRCScript()
           
 
Method Summary
static void main(java.lang.String[] args)
          Parse the command line arguments and create an RC script that can be used to control the server.
static int main(java.lang.String[] args, java.io.OutputStream outStream, java.io.OutputStream errStream)
          Parse the command line arguments and create an RC script that can be used to control the server.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CreateRCScript

public CreateRCScript()
Method Detail

main

public static void main(java.lang.String[] args)
Parse the command line arguments and create an RC script that can be used to control the server.

Parameters:
args - The command-line arguments provided to this program.

main

public static int main(java.lang.String[] args,
                       java.io.OutputStream outStream,
                       java.io.OutputStream errStream)
Parse the command line arguments and create an RC script that can be used to control the server.

Parameters:
args - The command-line arguments provided to this program.
outStream - The output stream to which standard output should be directed, or null if standard output should be suppressed.
errStream - The output stream to which standard error should be directed, or null if standard error should be suppressed.
Returns:
Zero if all processing completed successfully, or nonzero if an error occurred.