Changeset 88 for nutchez-0.1/bin/nutchez-func.sh
- Timestamp:
- Jul 6, 2009, 5:00:34 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
nutchez-0.1/bin/nutchez-func.sh
r80 r88 179 179 fi 180 180 ln -sf ~/.nutchez/search/ /tmp/ 181 ~/.nutchez/tomcat/bin/shutdown.sh 181 182 pid_tc=$(ps axw -eo pid,command | \ 183 grep "org.apache.catalina.startup.Bootstrap"\ 184 | grep "start" | awk '{print $1}') 185 if [ -z "$pid_tc" ]; then 186 echo "starting tomcat" 187 else 188 echo "tomcat had been started and the pid is $pid_tc" 189 echo "stop it first" 190 kill -9 $pid_tc 191 if [ -z $? ];then 192 echo " tomcat ($pid_tc) is killed ..." 193 else 194 echo "kill error ..." 195 fi 196 fi 182 197 ~/.nutchez/tomcat/bin/startup.sh 183 198 sleep 3
Note: See TracChangeset
for help on using the changeset viewer.