Linux下启动进程脚本

判断进程是否存在,如果不存在就启动它,如果存在就重启它。   #!/bin/bash #判断进程是否存在,如果不存在就启动它如果存在就重启它 while true; do cd /home/neousys/Documents/smartcockpit #启动一个循环,定时检查进程是否存在 server=`ps aux | grep smartcockpit | grep -v grep` if [
相关文章
相关标签/搜索