生命周期函数调用多次
## yarn start启动应用调用多次生命周期函数
初始化的项目添加app.js文件后即可重现

### 尝试了几个不同的nodejs版本，都出现了该情况
> nodejs版本：10.15.1、10.15.3、12.16.1、14.15.1

``` json
"dependencies": {
      "egg": "^2.15.1",
      "egg-scripts": "^2.11.0"
},
"devDependencies": {
      "autod": "^3.0.1",
      "autod-egg": "^1.1.0",
      "egg-bin": "^4.11.0",
      "egg-ci": "^1.11.0",
      "egg-mock": "^3.21.0",
      "eslint": "^5.13.0",
      "eslint-config-egg": "^7.1.0"
}
```

### app.js

``` js
class AppBoot {
    constructor(app) {
        this.app = app;
    }

    configWillLoad() {
        this.app.logger.info("configWillLoad");
    }

    async configDidLoad() {
        this.app.logger.info("configDidLoad");
    }

    async didLoad() {
        this.app.logger.info("didLoad");
    }

    async willReady() {
        this.app.logger.info("willReady");
    }

    async didReady() {
        this.app.logger.info("didReady");
    }

    async serverDidReady() {
        this.app.logger.info("serverDidReady");
    }
}

module.exports = AppBoot;
```

### npm rum start  log

``` cmd
> yarn start
yarn run v1.22.4
$ egg-scripts start --daemon --title=egg-server-egg-example
[egg-scripts] Starting egg application at /Users/xujianxing/Documents/workspace/test/egg-example
[egg-scripts] Run node /Users/xujianxing/Documents/workspace/test/egg-example/node_modules/egg-scripts/lib/start-cluster {"title":"egg-server-egg-example","baseDir":"/Users/xujianxing/Documents/workspace/test/egg-example","framework":"/Users/xujianxing/Documents/workspace/test/egg-example/node_modules/egg"} --title=egg-server-egg-example
[egg-scripts] Save log file to /Users/xujianxing/logs
[egg-scripts] Wait Start: 1...
[egg-scripts] Wait Start: 2...
[egg-scripts] Wait Start: 3...
[egg-scripts] egg started on http://127.0.0.1:7001
✨  Done in 3.56s.

2021-04-23 11:35:50,626 INFO 44521 configWillLoad
2021-04-23 11:35:50,686 INFO 44521 configDidLoad
2021-04-23 11:35:50,957 INFO 44521 didLoad
2021-04-23 11:35:50,967 INFO 44521 willReady
2021-04-23 11:35:50,968 INFO 44521 didReady
2021-04-23 11:35:51,047 INFO 44521 serverDidReady
2021-04-23 11:35:50,627 INFO 44522 configWillLoad
2021-04-23 11:35:50,705 INFO 44522 configDidLoad
2021-04-23 11:35:50,906 INFO 44522 didLoad
2021-04-23 11:35:50,922 INFO 44522 willReady
2021-04-23 11:35:50,925 INFO 44522 didReady
2021-04-23 11:35:51,048 INFO 44522 serverDidReady
2021-04-23 11:35:50,685 INFO 44523 configWillLoad
2021-04-23 11:35:50,737 INFO 44523 configDidLoad
2021-04-23 11:35:50,969 INFO 44523 didLoad
2021-04-23 11:35:50,983 INFO 44523 willReady
2021-04-23 11:35:50,986 INFO 44523 didReady
2021-04-23 11:35:51,048 INFO 44523 serverDidReady
2021-04-23 11:35:50,723 INFO 44524 configWillLoad
2021-04-23 11:35:50,795 INFO 44524 configDidLoad
2021-04-23 11:35:51,010 INFO 44524 didLoad
2021-04-23 11:35:51,028 INFO 44524 willReady
2021-04-23 11:35:51,028 INFO 44524 didReady
2021-04-23 11:35:51,047 INFO 44524 serverDidReady
```
