shell 脚本监控 php进程 screen 发送信号
2017-09-22 08:52
267 查看
#!/bin/sh source~/.bash_profile ps -ef |grep xx.php|grep -v 'grep' |grep -v"log" if [$? -eq 0] then { pid=$(echo $(ps -ef |grep xx.php|grep -v grep)|awk '{print $2}') } else { sleep 20 screen -r tpc -p 0 -X stuff "php -f xx.php" screen -r tpc -p 0 -X stuff $'\n' }
相关文章推荐
- centos中shell脚本监控php进程
- 用shell脚本监控进程是否存在 不存在则启动的实例
- 用Shell脚本定时监控Linux下的进程状态并自动重启
- 使用Shell脚本对Linux系统和进程资源进行监控
- 用shell脚本监控进程是否存在 不存在则启动的实例
- 使用Shell脚本对Linux系统和进程资源进行监控
- 用shell脚本监控进程是否存在 不存在则启动的实例
- Shell脚本监控、拉起Nimbus和Supervisor进程
- 用shell脚本监控进程是否存在 不存在则启动的实例
- 用shell脚本监控进程,挂掉后重启
- zabbix通过自定义脚本监控nginx,php-fpm和mysql占用内存数和进程的个数
- 转:使用Shell脚本对Linux系统和进程资源进行监控
- 使用 shell 脚本对 Linux 系统和进程资源进行监控
- shell监控linux系统进程创建脚本分享
- shell脚本监控系统负载,并在负载过大时发送邮件报警
- tomcat监控脚本(监控进程,测试接口,告警动作为发送邮件)
- 使用 shell 脚本对 Linux 系统和进程资源进行监控
- shell脚本作为保证PHP脚本不挂掉的守护进程实例
- curl 命令,curl监控网页shell脚本,curl多进程实现并控制进程数