摘要:
#!/bin/bash#ckconfig: 345 40 40NGINX_PATH=/web/container/nginx-1.2.6NGINX_COMMAND=$NGINX_PATH/sbin/nginxNGINX_PID=$NGINX_PATH/logs/nginx.pidVERSION=1.2.6CONF=$2start(){if [ -f $NGINX_PID ];thenecho "[Failure] Nginx is starting"elseecho "[Success] Starting Nginx $VERSION"#用户设置好后统一 阅读全文