后台运行python服务 起停脚本
2024-10-21 10:16:08
启动脚本
start.sh
#!/bin/bash nohup <command> > /dev/null 2>&1 & echo $! > command.ppid
停止脚本
#!/bin/bash ppid=`cat command.ppid` ps -o pid --ppid $ppid --no-heading | awk '{print$1}' | xargs -I {} kill {}
最新文章
- R语言爬虫初尝试-基于RVEST包学习
- 关于JSP页面字段属性设为disabled或者readonly所带来的问题总结
- 在网页中制作icon图标
- 关于location
- 无刷新分页 Ajax,JQuery,Json
- pycharm+QT4的helloworld
- HDU 1051:Wooden Sticks
- 设计模式学习--Factory Method
- Spring data mongodb ObjectId ,根据id日期条件查询,省略@CreatedDate注解
- A Proof of Stake Design Philosophy - PoS权益证明设计理念
- Excel 日期截取(函数)
- linux查找并替换命令
- Python基础知识:字符串
- .NET Core Tools for Visual Studio 2015 安装失败
- Java总结:字符串详解
- Android Dragger2快速入门浅析
- 【技术分享会】 iOS开发简述
- Netty源码分析第5章(ByteBuf)---->;第6节: 命中缓存的分配
- cxGrid使用汇总
- 〖Linux〗Ubuntu13.10中使用虚拟机对MTK手机进行线刷