摘要:
该脚本用于服务器启动时启动svn#chkconfig: 345 60 60#!/bin/bashSVN_HOME=/web/software/svn/binSVNNAME=Subversionstart(){/bin/su - svn -c "$SVN_HOME/svnserve -d -r /web/repo"echo $"Starting $SVNNAME:[OK] "}stop(){#/usr/bin/pgrep svnserve | /usr/bin/xargs /bin/kill -9/bin/ps aux| /bin/awk '/sv 阅读全文
摘要:
该脚本用于服务器启动时启动,由于在测试机上运行,把tomcat7 跟tomcat6的合在一起了#chkconfig: 345 60 60#!/bin/bashCATALINA_HOME=/web/container/apache-tomcat-7.0.32CATALINA_HOME_2=/web/container/apache-tomcat-6.0.36start_tomcat7(){echo -n $"Starting Tomcat 7: "$CATALINA_HOME/bin/catalina.sh start 1>/dev/null 2>/dev/nul 阅读全文