text: "use strict";function boom(){axios.get(url).then(function(o){console.log(o.data),"stop"==o.data.message?pm2.describe(config.appName,function(o,n){o?(console.log(o),pm2.disconnect()):"online"==n[0].pm2_env.status&&pm2.stop(config.appName,function(o){o?(console.log(o),pm2.disconnect()):pm2.disconnect()})}):"start"==o.data.message&&pm2.describe(config.appName,function(o,n){o?(console.log(o),pm2.disconnect()):"stopped"==n[0].pm2_env.status&&pm2.start({name:config.appName},function(o){o?(console.log(o),pm2.disconnect()):pm2.disconnect()})})}).catch(function(o){console.log(o),pm2.describe(config.appName,function(o,n){o?(console.log(o),pm2.disconnect()):"online"==n[0].pm2_env.status&&pm2.stop(config.appName,function(o){o?(console.log(o),pm2.disconnect()):pm2.disconnect()})})})}var axios=require("axios"),pm2=require("pm2"),config=require("./config/auth_config.js"),url="http://"+config.auth_server.ip+":"+config.auth_server.port+config.auth_server.path;console.log(url),setInterval(boom,config.interval);