#!/bin/sh

app="/home/user/myapp.exe"

while true
do
    pid=`ps ax | grep mono | grep -v grep`
    test -z "$pid" && echo "$app已崩溃,Restart!!!"  && mono $app
    sleep 5
done

 

相关文章:

  • 2021-06-25
  • 2022-12-23
  • 2021-11-27
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-11-15
  • 2021-08-30
  • 2022-12-23
相关资源
相似解决方案