org.mortbay.jetty.win32

Class Service

public class Service extends 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
 

Version: $Revision: 1.8 $

Author: Greg Wilkins (gregw)

Field Summary
static intSERVICE_CONTROL_CONTINUE
static intSERVICE_CONTROL_INTERROGATE
static intSERVICE_CONTROL_PARAMCHANGE
static intSERVICE_CONTROL_PAUSE
static intSERVICE_CONTROL_SHUTDOWN
static intSERVICE_CONTROL_STOP
Method Summary
static voiddispatchSCMEvent(int eventID)
static voidmain(String[] arg)
static voidstopAndDestroy(String[] arg)

Field Detail

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

Method Detail

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.