linux shell
文章平均质量分 83
flw521521
正在学习中...
展开
-
脚本重启pptp nginx
参考网上的资料,结合自己的菜鸟shell水平,写了两个很垃圾的脚本,一个是重启pptp,一个重启nginx,不要说哥粗鲁哦~ nginx重启脚本#!/bin/sh echo "kill nginx master"kill `cat /opt/nginx/logs/nginx.pid` echo "restart nginx"/opt/nginx/sbin...2011-03-08 21:11:54 · 460 阅读 · 0 评论 -
Linux启动脚本分析之functions
很好的一篇文章 # -*-Shell-script-*-## functions This file contains functions to be used by most or all # 注释 :该脚本几乎被 /etc/init.d/ 下的所有脚本所调用,因为它包含了大量的# shell scripts in the /etc/init.d di...原创 2011-03-15 19:46:50 · 98 阅读 · 0 评论