linux服务脚本

#!/bin/sh
ARG=$1
case $ARG in    
start):
nohup /path/program &
;;
stop):
pkill program
;;
restart):
pkill  program
nohup /path/program &
;;
esac
exit 0

linux守护进程
https://blog.csdn.net/zhangxuechao_/article/details/93972103

linux运行级
http://blog.csdn.net/zhangxuechao_/article/details/52166870

开机自启动服务
http://blog.csdn.net/zhangxuechao_/article/details/46504033

posted @ 2017-05-30 20:46  thomas_blog  阅读(94)  评论(0编辑  收藏  举报