lib/cli-controller.js
/*
 * starts the beacon process in the background
 */
starts the beacon process in the background
starts the beacon process in the background
function beaconUp() {
    beacon.checkIfRunning()
    .then(function(running) {
        if(running)
            console.log('The beacon is already up and listening.');
        else
            return beacon.start();
    })
    .then(function(started) {
        if(started)
            console.log('The beacon is now up and listening.');
        else if(started === false)
            console.error("Failed to start or connect to beacon.");
    })
    .then(function() {
        ipc.disconnect('klyng_beacon');
    });
}
function beaconUp ( ) { beacon . checkIfRunning ( ) . then ( function ( running ) { if ( running ) console . log ( 'The beacon is already up and listening.' ) ; else return beacon . start ( ) ; } ) . then ( function ( started ) { if ( started ) console . log ( 'The beacon is now up and listening.' ) ; else if ( started === false ) console . error ( "Failed to start or connect to beacon." ) ; } ) . then ( function ( ) { ipc . disconnect ( 'klyng_beacon' ) ; } ) ; }
starts the beacon process in the background
starts the beacon process in the background