Linux 自动重启程序脚本。通过该脚本启动程序,当程序异常退出后可以使程序重新启动。 #!/bin/sh while : do ./front_svr >> current.log 2>&1 sleep 30 done 注: front_svr 为需要自动重启的程序 赞微海报分享
近期评论