public class StartWindowsService extends Object
Constructor and Description |
---|
StartWindowsService() |
Modifier and Type | Method and Description |
---|---|
static void |
main(String[] args)
Invokes the net start on the service corresponding to this server.
|
static int |
startWindowsService(OutputStream outStream,
OutputStream errStream)
Invokes the net start on the service corresponding to this server, it
writes information and error messages in the provided streams.
|
public StartWindowsService()
public static void main(String[] args)
args
- The command-line arguments provided to this program.public static int startWindowsService(OutputStream outStream, OutputStream errStream)
outStream
- The stream to write standard output messages.errStream
- The stream to write error messages.SERVICE_START_SUCCESSFUL
,
SERVICE_NOT_FOUND
,
SERVICE_ALREADY_STARTED
or
SERVICE_START_ERROR
depending on whether the service
could be stopped or not.Copyright © 2010-2017 ForgeRock AS. All Rights Reserved.