npm8中文文档
如果定义了 restart 脚本,则运行这些事件,否则运行 stop 和 start(如果存在),包括它们的 pre 和 post 迭代)
restart
stop
start
pre
post
prerestart
postrestart