daemon/src/main/java/de/taimos/daemon/DaemonStarter.java
/**
     * Abort the daemon
     *
     * @param error the error causing the abortion
     */
Abort the daemon
@param error the error causing the abortion
Abort the daemon @param error the error causing the abortion
public static void abortSystem(final Throwable error) {
        DaemonStarter.currentPhase.set(LifecyclePhase.ABORTING);
        try {
            DaemonStarter.getLifecycleListener().aborting();
        } catch (Exception e) {
            DaemonStarter.rlog.error("Custom abort failed", e);
        }
        if (error != null) {
            DaemonStarter.rlog.error("Unrecoverable error encountered  --> Exiting : {}", error.getMessage());
            DaemonStarter.getLifecycleListener().exception(LifecyclePhase.ABORTING, error);
        } else {
            DaemonStarter.rlog.error("Unrecoverable error encountered --> Exiting");
        }
        System.exit(1);
    }
public static void abortSystem ( final Throwable error ) { DaemonStarter . currentPhase . set ( LifecyclePhase . ABORTING ) ; try { DaemonStarter . getLifecycleListener ( ) . aborting ( ) ; } catch ( Exception e ) { DaemonStarter . rlog . error ( "Custom abort failed" , e ) ; } if ( error != null ) { DaemonStarter . rlog . error ( "Unrecoverable error encountered  --> Exiting : {}" , error . getMessage ( ) ) ; DaemonStarter . getLifecycleListener ( ) . exception ( LifecyclePhase . ABORTING , error ) ; } else { DaemonStarter . rlog . error ( "Unrecoverable error encountered --> Exiting" ) ; } System . exit ( 1 ) ; }
Abort the daemon
 @param error the error causing the abortion
Abort the daemon @param error the error causing the abortion
// Exit system with failure return code