java.lang.Object
org.mortbay.jetty.win32.Service
- public class Service
- extends java.lang.Object
Run Jetty as a Win32 service.
System.out and System.err output can be controlled with java
properties: SERVICE_OUT and SERVICE_ERR.
The log file can be controlled with the property SERVICE_LOG_FILE
Example
jettysvc -c -DSERVICE_OUT="./logs/jettysvc.out" \\
-DSERVICE_ERR="./logs/jettysvc.err" \\
Jetty.xml wrkdir=$JETTY_HOME
- Version:
- $Revision: 1.6 $
|
Constructor Summary |
private |
Service()
Constructor. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
log
private static org.apache.commons.logging.Log log
serviceLogFile
static java.lang.String serviceLogFile
SERVICE_CONTROL_STOP
public static final int SERVICE_CONTROL_STOP
- See Also:
- Constant Field Values
SERVICE_CONTROL_PAUSE
public static final int SERVICE_CONTROL_PAUSE
- See Also:
- Constant Field Values
SERVICE_CONTROL_CONTINUE
public static final int SERVICE_CONTROL_CONTINUE
- See Also:
- Constant Field Values
SERVICE_CONTROL_INTERROGATE
public static final int SERVICE_CONTROL_INTERROGATE
- See Also:
- Constant Field Values
SERVICE_CONTROL_SHUTDOWN
public static final int SERVICE_CONTROL_SHUTDOWN
- See Also:
- Constant Field Values
SERVICE_CONTROL_PARAMCHANGE
public static final int SERVICE_CONTROL_PARAMCHANGE
- See Also:
- Constant Field Values
_servers
private static java.util.Vector _servers
_configs
private static java.util.Vector _configs
Service
private Service()
- Constructor.
dispatchSCMEvent
public static void dispatchSCMEvent(int eventID)
createAll
private static void createAll()
startAll
private static void startAll()
stopAll
private static void stopAll()
destroyAll
private static void destroyAll()
stopAndDestroy
public static void stopAndDestroy(java.lang.String[] arg)
main
public static void main(java.lang.String[] arg)