Skip to content

Instantly share code, notes, and snippets.

@oravecz
Created May 26, 2013 01:50
Show Gist options
  • Select an option

  • Save oravecz/5651436 to your computer and use it in GitHub Desktop.

Select an option

Save oravecz/5651436 to your computer and use it in GitHub Desktop.
var log = require( 'ringo/logging' ).getLogger( module.id );
function main() {
log.info( 'Executing main' );
require( 'system' ).exit( 0 );
}
if ( require.main === module ) {
require( "ringo/engine" ).addShutdownHook( function () {
log.error( 'SHUTTING DOWN' );
} );
main();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment