摘要: 一、写网络服务的系统启动脚本 利用case语句开发类似系统启动rsync服务的脚本 代码: #!/bin/sah. /etc/init.d/functionspidfile="/var/run/rsyncd.pid"start_rsync(){if [ -f "$pidfile" ] then ec 阅读全文
posted @ 2019-10-01 18:45 小熊尤里 阅读(624) 评论(0) 推荐(0)
摘要: 一、写一个start_nginx脚本,当启动、停止、重启时利用系统函数模拟实现系统脚本启动的特殊颜色效果 (用if实现) #!/bin/sh. /etc/init.d/functions if [ $# -ne 1 ] then echo "USAGE $0 {start|stop|restart} 阅读全文
posted @ 2019-10-01 13:40 小熊尤里 阅读(384) 评论(0) 推荐(0)