Package org.opends.server.tools
Class CreateRCScript
- java.lang.Object
-
- org.opends.server.tools.CreateRCScript
-
public class CreateRCScript extends 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
Constructors Constructor Description CreateRCScript()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidmain(String[] args)Parse the command line arguments and create an RC script that can be used to control the server.static intmain(String[] args, OutputStream outStream, OutputStream errStream)Parse the command line arguments and create an RC script that can be used to control the server.
-
-
-
Method Detail
-
main
public static void main(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(String[] args, OutputStream outStream, 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, ornullif standard output should be suppressed.errStream- The output stream to which standard error should be directed, ornullif standard error should be suppressed.- Returns:
- Zero if all processing completed successfully, or nonzero if an error occurred.
-
-