如果一个进程死了,我如何编写bash脚本来重新启动它?
# checkqueue.pywhile True: check_queue() do_something()
ps | grep
?):
# keepalivescript.shif processidfile exists: if processid is running: exit, all ok run checkqueue.py write processid to processidfile
# crontab*/5 * * * * /path/to/keepalivescript.sh
UYOU
相关分类