#!/bin/sh ps -fe|grep node.*koishi |grep -v grep if [ $? -ne 0 ] ; then echo "【Koishi】进程不存在,正在启动中..." cd /root/koishi-app nohup yarn start >/root/koishi.nohup.out 2>&1 & else echo "【Koishi】努力运行中..." fi