org.mortbay.jetty.win32
Class Service
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
Derived from SCMEventManager.java by Bill Giel/KC Multimedia and Design Group, Inc.,
Example
jettysvc -c -DSERVICE_OUT="./logs/jettysvc.out" \\
-DSERVICE_ERR="./logs/jettysvc.err" \\
Jetty.xml wrkdir=$JETTY_HOME
SERVICE_CONTROL_CONTINUE
public static final int SERVICE_CONTROL_CONTINUE
SERVICE_CONTROL_INTERROGATE
public static final int SERVICE_CONTROL_INTERROGATE
SERVICE_CONTROL_PARAMCHANGE
public static final int SERVICE_CONTROL_PARAMCHANGE
SERVICE_CONTROL_PAUSE
public static final int SERVICE_CONTROL_PAUSE
SERVICE_CONTROL_SHUTDOWN
public static final int SERVICE_CONTROL_SHUTDOWN
SERVICE_CONTROL_STOP
public static final int SERVICE_CONTROL_STOP
dispatchSCMEvent
public static void dispatchSCMEvent(int eventID)
main
public static void main(String[] arg)
stopAndDestroy
public static void stopAndDestroy(String[] arg)
Copyright © 2004 Mortbay Consulting Pty. Ltd. All Rights Reserved.