2024年3月11日

(笔记)超实用的程序守护脚本,程序异常退出后自动重启程序

摘要: 超实用的程序守护脚本,程序异常退出后自动重启程序 #!/bin/sh while true do PIDS=`ps -ef |grep ./test |grep -v grep | awk '{print $2}'` if [ "$PIDS" != "" ]; then echo $PIDS ech 阅读全文

posted @ 2024-03-11 08:37 tdyizhen1314 阅读(18) 评论(0) 推荐(0) 编辑

导航