mil.dod.th.ose.time.service/src/mil/dod/th/ose/time/service/TimeChangeServiceMain.java
public static void main(final String[] args)
    {
        //see if there is an argument of where to log to.
        if (args.length == 1)
        {
            TimeChangeServiceLogger.setupLogger(args[0]);
        }
        else 
        {
            return;
        }
        
        //adds a callback so that on shutdown we can stop the running thread.
        Runtime.getRuntime().addShutdownHook(new Thread(new TimeServiceShutdownHook()));
        onStart();
    }
/**
     * Main method to begin the service.
     * 
     * @param args
     *  the command line arguments passed in on invocation.
     */
Main method to begin the service.

@param args
the command line arguments passed in on invocation.
Main method to begin the service . @param args the command line arguments passed in on invocation .
public static void main(final String[] args)
    {
        if (args.length == 1)
        {
            TimeChangeServiceLogger.setupLogger(args[0]);
        }
        else 
        {
            return;
        }
        Runtime.getRuntime().addShutdownHook(new Thread(new TimeServiceShutdownHook()));
        onStart();
    }
public static void main ( final String [ ] args ) { if ( args . length == 1 ) { TimeChangeServiceLogger . setupLogger ( args [ 0 ] ) ; } else { return ; } Runtime . getRuntime ( ) . addShutdownHook ( new Thread ( new TimeServiceShutdownHook ( ) ) ) ; onStart ( ) ; }
Main method to begin the service.
Main method to begin the service .
//see if there is an argument of where to log to. //adds a callback so that on shutdown we can stop the running thread.