src/lib/cli.js
function checkStatus() {
  return server.ping(this, function(err, res) {
    if (err) {
      return out.error("error occurred: %j", err);
    }
    if (res.running) {
      return out.success("service running");
    }
    return out.error("service not running");
  });
}
function checkStatus() {
  return server.ping(this, function(err, res) {
    if (err) {
      return out.error("error occurred: %j", err);
    }
    if (res.running) {
      return out.success("service running");
    }
    return out.error("service not running");
  });
}
function checkStatus ( ) { return server . ping ( this , function ( err , res ) { if ( err ) { return out . error ( "error occurred: %j" , err ) ; } if ( res . running ) { return out . success ( "service running" ) ; } return out . error ( "service not running" ) ; } ) ; }
Check status of the service
Check status of the service