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