centos自启动脚本编写

来源:互联网 发布:网络搞笑小视频红人 编辑:程序博客网 时间:2024/05/21 10:37

脚本样例:

#!/bin/bash## author:chenxuyi# createtime:2015/09/21# description:example for init## chkconfig: 2345 95 5# processname: test# 函数定义start(){}stop(){}restart(){}# 程序主体case "$1" instart)start;;stop)stop;;reload)restart;;*)echo "Use method: start | stop | reload"exit 1esacexit 2

上面所列出的都是自启动脚本必需要有的(对本人而言,实际情况并非如此)

0 0
原创粉丝点击