rendered paste bodypor0714 gorkaion # /etc/init.d/tomcat-6 stop
+ [[ -z start stop restart ]]
+ shift
+ [[ 1 -lt 1 ]]
+ for arg in '"$@"'
+ case "${arg}" in
+ retval=0
+ for arg in '"$@"'
+ case "${arg}" in
+ [[ -e /var/lib/init.d/scheduled/tomcat-6 ]]
+ [[ '' == \t\r\u\e ]]
+ svc_stop
+ local x= mydep= mydeps= retval=0
+ servicelist=()
+ local -a servicelist
+ is_runlevel_stop
+ [[ -d /var/lib/init.d/softscripts.new ]]
+ service_stopped tomcat-6
+ [[ -z tomcat-6 ]]
+ service_starting tomcat-6
+ test_service_state tomcat-6 starting
+ [[ -z tomcat-6 ]]
+ [[ -z starting ]]
+ local f=/var/lib/init.d/starting/tomcat-6
+ [[ ! -x /etc/init.d/tomcat-6 ]]
+ [[ -e /var/lib/init.d/starting/tomcat-6 ]]
+ service_started tomcat-6
+ test_service_state tomcat-6 started
+ [[ -z tomcat-6 ]]
+ [[ -z started ]]
+ local f=/var/lib/init.d/started/tomcat-6
+ [[ ! -x /etc/init.d/tomcat-6 ]]
+ [[ -e /var/lib/init.d/started/tomcat-6 ]]
+ return 1
+ mark_service_stopping tomcat-6
+ [[ -z tomcat-6 ]]
+ ln -sn /etc/init.d/tomcat-6 /var/lib/init.d/stopping/tomcat-6
+ rm -f /var/lib/init.d/started/tomcat-6
+ [[ -f /var/lib/init.d/inactive/tomcat-6 ]]
+ return 0
+ trap svc_quit INT QUIT TSTP
+ mark_service_starting tomcat-6
+ [[ -z tomcat-6 ]]
+ ln -sn /etc/init.d/tomcat-6 /var/lib/init.d/starting/tomcat-6
+ [[ -f /var/lib/init.d/started/tomcat-6 ]]
+ [[ -f /var/lib/init.d/inactive/tomcat-6 ]]
+ return 0
+ service_message 'Service tomcat-6 stopping'
+ [[ no != \y\e\s ]]
+ return
+ in_runlevel tomcat-6 boot
+ [[ -z tomcat-6 ]]
+ [[ -z boot ]]
+ [[ -L /etc/runlevels/boot/tomcat-6 ]]
+ return 1
+ [[ no != \y\e\s ]]
+ [[ '' != \y\e\s ]]
+ service_wasinactive tomcat-6
+ test_service_state tomcat-6 wasinactive
+ [[ -z tomcat-6 ]]
+ [[ -z wasinactive ]]
+ local f=/var/lib/init.d/wasinactive/tomcat-6
+ [[ ! -x /etc/init.d/tomcat-6 ]]
+ [[ -e /var/lib/init.d/wasinactive/tomcat-6 ]]
+ net_service tomcat-6
+ [[ -n tomcat-6 ]]
+ [[ tomcat-6 == \n\e\t ]]
+ mydeps=' tomcat-6'
+ local ib_save=
+ unset IN_BACKGROUND
+ for mydep in '${mydeps}'
++ needsme tomcat-6
++ check_dependency needsme tomcat-6
++ [[ -z needsme ]]
++ [[ -z tomcat-6 ]]
++ local x myservice deps
++ [[ tomcat-6 == \-\t ]]
++ myservice=tomcat-6
++ get_dep_info tomcat-6
++ [[ -z tomcat-6 ]]
++ local myservice=tomcat-6
++ [[ tomcat-6 == '' ]]
+++ get_service_index tomcat-6 0
+++ [[ -z tomcat-6 ]]
+++ [[ -z 0 ]]
+++ local x myservice=tomcat-6 index=0
+++ [[ -n 0 ]]
+++ [[ 0 -gt 0 ]]
+++ (( x=1 ))
+++ (( x<=87 ))
+++ index=10
+++ [[ tomcat-6 == \c\h\e\c\k\r\o\o\t ]]
+++ (( x++ ))
+++ (( x<=87 ))
+++ index=20
+++ [[ tomcat-6 == \c\l\o\c\k ]]
+++ (( x++ ))
+++ (( x<=87 ))
+++ index=30
+++ [[ tomcat-6 == \c\o\n\s\o\l\e\f\o\n\t ]]
+++ (( x++ ))
+++ (( x<=87 ))
+++ index=40
+++ [[ tomcat-6 == \c\o\n\s\o\l\e\k\i\t ]]
+++ (( x++ ))
+++ (( x<=87 ))
+++ index=50
+++ [[ tomcat-6 == \c\p\u\f\r\e\q\d ]]
+++ (( x++ ))
+++ (( x<=87 ))
+++ index=60
+++ [[ tomcat-6 == \c\p\u\f\r\e\q\u\t\i\l\s ]]
+++ (( x++ ))
+++ (( x<=87 ))
+++ index=70
+++ [[ tomcat-6 == \c\r\y\p\t\o\-\l\o\o\p ]]
+++ (( x++ ))
+++ (( x<=87 ))
+++ index=80
+++ [[ tomcat-6 == \f\u\s\e ]]
+++ (( x++ ))
+++ (( x<=87 ))
+++ index=90
+++ [[ tomcat-6 == \c\u\p\s\d ]]
+++ (( x++ ))
+++ (( x<=87 ))
+++ index=100
+++ [[ tomcat-6 == \g\p\m ]]
+++ (( x++ ))
+++ (( x<=87 ))
+++ index=110
+++ [[ tomcat-6 == \d\b\u\s ]]
+++ (( x++ ))
+++ (( x<=87 ))
+++ index=120
+++ [[ tomcat-6 == \h\a\l\d ]]
+++ (( x++ ))
+++ (( x<=87 ))
+++ index=130
+++ [[ tomcat-6 == \d\d\c\l\i\e\n\t ]]
+++ (( x++ ))
+++ (( x<=87 ))
+++ index=140
+++ [[ tomcat-6 == \h\d\d\t\e\m\p ]]
+++ (( x++ ))
+++ (( x<=87 ))
+++ index=150
+++ [[ tomcat-6 == \h\d\p\a\r\m ]]
+++ (( x++ ))
+++ (( x<=87 ))
+++ index=160
+++ [[ tomcat-6 == \h\i\b\e\r\n\a\t\e\-\c\l\e\a\n\u\p ]]
+++ (( x++ ))
+++ (( x<=87 ))
+++ index=170
+++ [[ tomcat-6 == \m\o\d\u\l\e\s ]]
+++ (( x++ ))
+++ (( x<=87 ))
+++ index=180
+++ [[ tomcat-6 == \h\o\s\t\n\a\m\e ]]
+++ (( x++ ))
+++ (( x<=87 ))
+++ index=190
+++ [[ tomcat-6 == \m\p\d ]]
+++ (( x++ ))
+++ (( x<=87 ))
+++ index=200
+++ [[ tomcat-6 == \i\p\s\e\c ]]
+++ (( x++ ))
+++ (( x<=87 ))
+++ index=210
+++ [[ tomcat-6 == \m\y\s\q\l ]]
+++ (( x++ ))
+++ (( x<=87 ))
+++ index=220
+++ [[ tomcat-6 == \i\p\t\a\b\l\e\s ]]
+++ (( x++ ))
+++ (( x<=87 ))
+++ index=230
+++ [[ tomcat-6 == \m\y\s\q\l\m\a\n\a\g\e\r ]]
+++ (( x++ ))
+++ (( x<=87 ))
+++ index=240
+++ [[ tomcat-6 == \n\a\s ]]
+++ (( x++ ))
+++ (( x<=87 ))
+++ index=250
+++ [[ tomcat-6 == \n\e\t\.\b\r\0 ]]
+++ (( x++ ))
+++ (( x<=87 ))
+++ index=260
+++ [[ tomcat-6 == \n\e\t\.\e\t\h\0 ]]
+++ (( x++ ))
+++ (( x<=87 ))
+++ index=270
+++ [[ tomcat-6 == \a\c\p\i\d ]]
+++ (( x++ ))
+++ (( x<=87 ))
+++ index=280
+++ [[ tomcat-6 == \r\a\c\o\o\n ]]
+++ (( x++ ))
+++ (( x<=87 ))
+++ index=290
+++ [[ tomcat-6 == \n\e\t\.\e\t\h\1 ]]
+++ (( x++ ))
+++ (( x<=87 ))
+++ index=300
+++ [[ tomcat-6 == \a\l\s\a\s\o\u\n\d ]]
+++ (( x++ ))
+++ (( x<=87 ))
+++ index=310
+++ [[ tomcat-6 == \n\e\t\.\l\o ]]
+++ (( x++ ))
+++ (( x<=87 ))
+++ index=320
+++ [[ tomcat-6 == \a\t\i\e\v\e\n\t\s\d ]]
+++ (( x++ ))
+++ (( x<=87 ))
+++ index=330
+++ [[ tomcat-6 == \r\m\n\o\l\o\g\i\n ]]
+++ (( x++ ))
+++ (( x<=87 ))
+++ index=340
+++ [[ tomcat-6 == \n\e\t\m\o\u\n\t ]]
+++ (( x++ ))
+++ (( x<=87 ))
+++ index=350
+++ [[ tomcat-6 == \a\u\m\i\x ]]
+++ (( x++ ))
+++ (( x<=87 ))
+++ index=360
+++ [[ tomcat-6 == \r\s\y\n\c\d ]]
+++ (( x++ ))
+++ (( x<=87 ))
+++ index=370
+++ [[ tomcat-6 == \b\l\u\e\t\o\o\t\h ]]
+++ (( x++ ))
+++ (( x<=87 ))
+++ index=380
+++ [[ tomcat-6 == \b\o\o\t\m\i\s\c ]]
+++ (( x++ ))
+++ (( x<=87 ))
+++ index=390
+++ [[ tomcat-6 == \s\a\m\b\a ]]
+++ (( x++ ))
+++ (( x<=87 ))
+++ index=400
+++ [[ tomcat-6 == \b\t\t\r\a\c\k ]]
+++ (( x++ ))
+++ (( x<=87 ))
+++ index=410
+++ [[ tomcat-6 == \s\a\s\l\a\u\t\h\d ]]
+++ (( x++ ))
+++ (( x<=87 ))
+++ index=420
+++ [[ tomcat-6 == \ç ]]
+++ (( x++ ))
+++ (( x<=87 ))
+++ index=430
+++ [[ tomcat-6 == \v\m\w\a\r\e ]]
+++ (( x++ ))
+++ (( x<=87 ))
+++ index=440
+++ [[ tomcat-6 == \s\c\m\p\c ]]
+++ (( x++ ))
+++ (( x<=87 ))
+++ index=450
+++ [[ tomcat-6 == \c\h\e\c\k\f\s ]]
+++ (( x++ ))
+++ (( x<=87 ))
+++ index=460
+++ [[ tomcat-6 == \v\p\n\c ]]
+++ (( x++ ))
+++ (( x<=87 ))
+++ index=470
+++ [[ tomcat-6 == \v\s\f\t\p\d ]]
+++ (( x++ ))
+++ (( x<=87 ))
+++ index=480
+++ [[ tomcat-6 == \s\l\a\p\d ]]
+++ (( x++ ))
+++ (( x<=87 ))
+++ index=490
+++ [[ tomcat-6 == \x\d\m ]]
+++ (( x++ ))
+++ (( x<=87 ))
+++ index=500
+++ [[ tomcat-6 == \d\e\v\i\c\e\-\m\a\p\p\e\r ]]
+++ (( x++ ))
+++ (( x<=87 ))
+++ index=510
+++ [[ tomcat-6 == \d\h\c\p\d ]]
+++ (( x++ ))
+++ (( x<=87 ))
+++ index=520
+++ [[ tomcat-6 == \d\h\c\r\e\l\a\y ]]
+++ (( x++ ))
+++ (( x<=87 ))
+++ index=530
+++ [[ tomcat-6 == \d\i\s\t\c\c\d ]]
+++ (( x++ ))
+++ (( x<=87 ))
+++ index=540
+++ [[ tomcat-6 == \d\m\e\v\e\n\t\d ]]
+++ (( x++ ))
+++ (( x<=87 ))
+++ index=550
+++ [[ tomcat-6 == \d\n\s\e\x\t\d ]]
+++ (( x++ ))
+++ (( x<=87 ))
+++ index=560
+++ [[ tomcat-6 == \i\p\w\3\9\4\5\d ]]
+++ (( x++ ))
+++ (( x<=87 ))
+++ index=570
+++ [[ tomcat-6 == \k\e\y\m\a\p\s ]]
+++ (( x++ ))
+++ (( x<=87 ))
+++ index=580
+++ [[ tomcat-6 == \e\s\o\u\n\d ]]
+++ (( x++ ))
+++ (( x<=87 ))
+++ index=590
+++ [[ tomcat-6 == \k\i\s\m\e\t ]]
+++ (( x++ ))
+++ (( x<=87 ))
+++ index=600
+++ [[ tomcat-6 == \l\2\t\p\d ]]
+++ (( x++ ))
+++ (( x<=87 ))
+++ index=610
+++ [[ tomcat-6 == \l\o\c\a\l ]]
+++ (( x++ ))
+++ (( x<=87 ))
+++ index=620
+++ [[ tomcat-6 == \l\o\c\a\l\m\o\u\n\t ]]
+++ (( x++ ))
+++ (( x<=87 ))
+++ index=630
+++ [[ tomcat-6 == \m\d\n\s\d ]]
+++ (( x++ ))
+++ (( x<=87 ))
+++ index=640
+++ [[ tomcat-6 == \n\e\t\.\t\u\n\0 ]]
+++ (( x++ ))
+++ (( x<=87 ))
+++ index=650
+++ [[ tomcat-6 == \m\D\N\S\R\e\s\p\o\n\d\e\r\P\o\s\i\x ]]
+++ (( x++ ))
+++ (( x<=87 ))
+++ index=660
+++ [[ tomcat-6 == \n\s\c\d ]]
+++ (( x++ ))
+++ (( x<=87 ))
+++ index=670
+++ [[ tomcat-6 == \m\i\t\-\k\r\b\5\k\a\d\m\i\n\d ]]
+++ (( x++ ))
+++ (( x<=87 ))
+++ index=680
+++ [[ tomcat-6 == \n\t\p\-\c\l\i\e\n\t ]]
+++ (( x++ ))
+++ (( x<=87 ))
+++ index=690
+++ [[ tomcat-6 == \m\i\t\-\k\r\b\5\k\d\c ]]
+++ (( x++ ))
+++ (( x<=87 ))
+++ index=700
+++ [[ tomcat-6 == \n\t\p\d ]]
+++ (( x++ ))
+++ (( x<=87 ))
+++ index=710
+++ [[ tomcat-6 == \n\u\m\l\o\c\k ]]
+++ (( x++ ))
+++ (( x<=87 ))
+++ index=720
+++ [[ tomcat-6 == \o\p\e\n\v\p\n ]]
+++ (( x++ ))
+++ (( x<=87 ))
+++ index=730
+++ [[ tomcat-6 == \o\r\a\c\l\e\-\x\e ]]
+++ (( x++ ))
+++ (( x<=87 ))
+++ index=740
+++ [[ tomcat-6 == \s\l\u\r\p\d ]]
+++ (( x++ ))
+++ (( x<=87 ))
+++ index=750
+++ [[ tomcat-6 == \p\e\-\f\o\r\m\a\t ]]
+++ (( x++ ))
+++ (( x<=87 ))
+++ index=760
+++ [[ tomcat-6 == \s\m\a\r\t\d ]]
+++ (( x++ ))
+++ (( x<=87 ))
+++ index=770
+++ [[ tomcat-6 == \p\o\s\t\g\r\e\s\q\l ]]
+++ (( x++ ))
+++ (( x<=87 ))
+++ index=780
+++ [[ tomcat-6 == \s\s\h\d ]]
+++ (( x++ ))
+++ (( x<=87 ))
+++ index=790
+++ [[ tomcat-6 == \p\w\c\h\e\c\k ]]
+++ (( x++ ))
+++ (( x<=87 ))
+++ index=800
+++ [[ tomcat-6 == \s\y\n\d\a\e\m\o\n ]]
+++ (( x++ ))
+++ (( x<=87 ))
+++ index=810
+++ [[ tomcat-6 == \s\y\s\l\o\g\-\n\g ]]
+++ (( x++ ))
+++ (( x<=87 ))
+++ index=820
+++ [[ tomcat-6 == \t\h\t\t\p\d ]]
+++ (( x++ ))
+++ (( x<=87 ))
+++ index=830
+++ [[ tomcat-6 == \t\o\m\c\a\t\-\6 ]]
+++ echo 830
+++ return 0
++ rc_index=830
++ rc_mtime=1197308407
++ rc_name=tomcat-6
++ rc_ineed=
++ rc_needsme=
++ rc_iuse='net syslog-ng'
++ rc_usesme=
++ rc_ibefore=local
++ rc_iafter=checkroot
++ rc_broken=
++ rc_mtime=1197308407
++ return 0
++ deps=rc_needsme
++ [[ -z '' ]]
++ return 1
+ IN_BACKGROUND=
+ [[ 0 == \0 ]]
+ [[ no == \y\e\s ]]
+ stop
+ ebegin 'Stopping Tomcat'
+ local 'msg=Stopping Tomcat' dots spaces=
+ [[ no == \y\e\s ]]
+ [[ -n '' ]]
+ msg='Stopping Tomcat ...'
+ einfon 'Stopping Tomcat ...'
+ [[ no == \y\e\s ]]
+ [[ yes != \y\e\s ]]
+ echo -ne ' * Stopping Tomcat ...'
* Stopping Tomcat ...+ LAST_E_CMD=einfon
+ return 0
+ [[ yes == \y\e\s ]]
+ echo
+ LAST_E_LEN=22
+ LAST_E_CMD=ebegin
+ return 0
+ init_env_vars
++ java-config --jre-home
+ JAVA_HOME=/opt/sun-jdk-1.5.0.13
+ '[' -z /var/tmp/tomcat-6/ ']'
+ JPDA_TRANSPORT=dt_socket
+ JPDA_ADDRESS=8000
+ JPDA_OPTS='-Xdebug -Xrunjdwp:transport=dt_socket,address=8000,server=y,suspend=n'
+ '[' -r /usr/share/tomcat-6//bin/tomcat-juli.jar ']'
+ JAVA_OPTS=' -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager -Djava.util.logging.config.file=/var/lib/tomcat-6//conf/logging.properties'
+ CLASSPATH=/usr/share/tomcat-6/lib/:/usr/share/tomcat-6//lib:/opt/sun-jdk-1.5.0.13/lib/tools.jar
+ '[' -n '' ']'
+ CLASSPATH=/usr/share/tomcat-6/lib/:/usr/share/tomcat-6//lib:/opt/sun-jdk-1.5.0.13/lib/tools.jar:/usr/share/tomcat-6//bin/bootstrap.jar:/usr/share/tomcat-6//bin/tomcat-juli.jar
+ OPTS_CP=' -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager -Djava.util.logging.config.file=/var/lib/tomcat-6//conf/logging.properties -server -Xms384M -Xmx1024M -classpath /usr/share/tomcat-6/lib/:/usr/share/tomcat-6//lib:/opt/sun-jdk-1.5.0.13/lib/tools.jar:/usr/share/tomcat-6//bin/bootstrap.jar:/usr/share/tomcat-6//bin/tomcat-juli.jar'
+ CATALINA_ARGS='-Dcatalina.base=/var/lib/tomcat-6/ -Dcatalina.home=/usr/share/tomcat-6/ -Djava.io.tmpdir=/var/tmp/tomcat-6/ org.apache.catalina.startup.Bootstrap '
+ '[' '!' -f /var/lib/tomcat-6/logs/catalina.out ']'
+ start-stop-daemon --stop --quiet --make-pidfile --pidfile /var/run/tomcat-6.pid --exec /opt/sun-jdk-1.5.0.13/bin/java -- -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager -Djava.util.logging.config.file=/var/lib/tomcat-6//conf/logging.properties -server -Xms384M -Xmx1024M -classpath /usr/share/tomcat-6/lib/:/usr/share/tomcat-6//lib:/opt/sun-jdk-1.5.0.13/lib/tools.jar:/usr/share/tomcat-6//bin/bootstrap.jar:/usr/share/tomcat-6//bin/tomcat-juli.jar -Dcatalina.base=/var/lib/tomcat-6/ -Dcatalina.home=/usr/share/tomcat-6/ -Djava.io.tmpdir=/var/tmp/tomcat-6/ org.apache.catalina.startup.Bootstrap stop
++ requote --stop --quiet --make-pidfile --pidfile /var/run/tomcat-6.pid --exec /opt/sun-jdk-1.5.0.13/bin/java -- -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager -Djava.util.logging.config.file=/var/lib/tomcat-6//conf/logging.properties -server -Xms384M -Xmx1024M -classpath /usr/share/tomcat-6/lib/:/usr/share/tomcat-6//lib:/opt/sun-jdk-1.5.0.13/lib/tools.jar:/usr/share/tomcat-6//bin/bootstrap.jar:/usr/share/tomcat-6//bin/tomcat-juli.jar -Dcatalina.base=/var/lib/tomcat-6/ -Dcatalina.home=/usr/share/tomcat-6/ -Djava.io.tmpdir=/var/tmp/tomcat-6/ org.apache.catalina.startup.Bootstrap stop
++ local 'q='\'''
++ set -- --stop --quiet --make-pidfile --pidfile /var/run/tomcat-6.pid --exec /opt/sun-jdk-1.5.0.13/bin/java -- -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager -Djava.util.logging.config.file=/var/lib/tomcat-6//conf/logging.properties -server -Xms384M -Xmx1024M -classpath /usr/share/tomcat-6/lib/:/usr/share/tomcat-6//lib:/opt/sun-jdk-1.5.0.13/lib/tools.jar:/usr/share/tomcat-6//bin/bootstrap.jar:/usr/share/tomcat-6//bin/tomcat-juli.jar -Dcatalina.base=/var/lib/tomcat-6/ -Dcatalina.home=/usr/share/tomcat-6/ -Djava.io.tmpdir=/var/tmp/tomcat-6/ org.apache.catalina.startup.Bootstrap stop
++ set -- ''\''--stop' ''\''--quiet' ''\''--make-pidfile' ''\''--pidfile' ''\''/var/run/tomcat-6.pid' ''\''--exec' ''\''/opt/sun-jdk-1.5.0.13/bin/java' ''\''--' ''\''-Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager' ''\''-Djava.util.logging.config.file=/var/lib/tomcat-6//conf/logging.properties' ''\''-server' ''\''-Xms384M' ''\''-Xmx1024M' ''\''-classpath' ''\''/usr/share/tomcat-6/lib/:/usr/share/tomcat-6//lib:/opt/sun-jdk-1.5.0.13/lib/tools.jar:/usr/share/tomcat-6//bin/bootstrap.jar:/usr/share/tomcat-6//bin/tomcat-juli.jar' ''\''-Dcatalina.base=/var/lib/tomcat-6/' ''\''-Dcatalina.home=/usr/share/tomcat-6/' ''\''-Djava.io.tmpdir=/var/tmp/tomcat-6/' ''\''org.apache.catalina.startup.Bootstrap' ''\''stop'
++ set -- ''\''--stop'\''' ''\''--quiet'\''' ''\''--make-pidfile'\''' ''\''--pidfile'\''' ''\''/var/run/tomcat-6.pid'\''' ''\''--exec'\''' ''\''/opt/sun-jdk-1.5.0.13/bin/java'\''' ''\''--'\''' ''\''-Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager'\''' ''\''-Djava.util.logging.config.file=/var/lib/tomcat-6//conf/logging.properties'\''' ''\''-server'\''' ''\''-Xms384M'\''' ''\''-Xmx1024M'\''' ''\''-classpath'\''' ''\''/usr/share/tomcat-6/lib/:/usr/share/tomcat-6//lib:/opt/sun-jdk-1.5.0.13/lib/tools.jar:/usr/share/tomcat-6//bin/bootstrap.jar:/usr/share/tomcat-6//bin/tomcat-juli.jar'\''' ''\''-Dcatalina.base=/var/lib/tomcat-6/'\''' ''\''-Dcatalina.home=/usr/share/tomcat-6/'\''' ''\''-Djava.io.tmpdir=/var/tmp/tomcat-6/'\''' ''\''org.apache.catalina.startup.Bootstrap'\''' ''\''stop'\'''
++ echo ''\''--stop'\'' '\''--quiet'\'' '\''--make-pidfile'\'' '\''--pidfile'\'' '\''/var/run/tomcat-6.pid'\'' '\''--exec'\'' '\''/opt/sun-jdk-1.5.0.13/bin/java'\'' '\''--'\'' '\''-Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager'\'' '\''-Djava.util.logging.config.file=/var/lib/tomcat-6//conf/logging.properties'\'' '\''-server'\'' '\''-Xms384M'\'' '\''-Xmx1024M'\'' '\''-classpath'\'' '\''/usr/share/tomcat-6/lib/:/usr/share/tomcat-6//lib:/opt/sun-jdk-1.5.0.13/lib/tools.jar:/usr/share/tomcat-6//bin/bootstrap.jar:/usr/share/tomcat-6//bin/tomcat-juli.jar'\'' '\''-Dcatalina.base=/var/lib/tomcat-6/'\'' '\''-Dcatalina.home=/usr/share/tomcat-6/'\'' '\''-Djava.io.tmpdir=/var/tmp/tomcat-6/'\'' '\''org.apache.catalina.startup.Bootstrap'\'' '\''stop'\'''
+ local 'args='\''--stop'\'' '\''--quiet'\'' '\''--make-pidfile'\'' '\''--pidfile'\'' '\''/var/run/tomcat-6.pid'\'' '\''--exec'\'' '\''/opt/sun-jdk-1.5.0.13/bin/java'\'' '\''--'\'' '\''-Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager'\'' '\''-Djava.util.logging.config.file=/var/lib/tomcat-6//conf/logging.properties'\'' '\''-server'\'' '\''-Xms384M'\'' '\''-Xmx1024M'\'' '\''-classpath'\'' '\''/usr/share/tomcat-6/lib/:/usr/share/tomcat-6//lib:/opt/sun-jdk-1.5.0.13/lib/tools.jar:/usr/share/tomcat-6//bin/bootstrap.jar:/usr/share/tomcat-6//bin/tomcat-juli.jar'\'' '\''-Dcatalina.base=/var/lib/tomcat-6/'\'' '\''-Dcatalina.home=/usr/share/tomcat-6/'\'' '\''-Djava.io.tmpdir=/var/tmp/tomcat-6/'\'' '\''org.apache.catalina.startup.Bootstrap'\'' '\''stop'\''' result i
+ local cmd name pidfile pid stopping signal nothing=false
+ local daemonfile=
+ RC_DAEMONS=()
+ RC_PIDFILES=()
+ RC_NAMES=()
+ local -a RC_DAEMONS RC_PIDFILES RC_NAMES
+ [[ -n tomcat-6 ]]
+ daemonfile=/var/lib/init.d/daemons/tomcat-6
+ [[ -e /var/lib/init.d/daemons/tomcat-6 ]]
+ rc_setup_daemon_vars
+ sargs=("${args%% \'--\' *}")
+ eargs=()
+ local -a sargs eargs
+ local 'x='\''--stop'\'' '\''--quiet'\'' '\''--make-pidfile'\'' '\''--pidfile'\'' '\''/var/run/tomcat-6.pid'\'' '\''--exec'\'' '\''/opt/sun-jdk-1.5.0.13/bin/java'\'''\''-Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager'\'' '\''-Djava.util.logging.config.file=/var/lib/tomcat-6//conf/logging.properties'\'' '\''-server'\'' '\''-Xms384M'\'' '\''-Xmx1024M'\'' '\''-classpath'\'' '\''/usr/share/tomcat-6/lib/:/usr/share/tomcat-6//lib:/opt/sun-jdk-1.5.0.13/lib/tools.jar:/usr/share/tomcat-6//bin/bootstrap.jar:/usr/share/tomcat-6//bin/tomcat-juli.jar'\'' '\''-Dcatalina.base=/var/lib/tomcat-6/'\'' '\''-Dcatalina.home=/usr/share/tomcat-6/'\'' '\''-Djava.io.tmpdir=/var/tmp/tomcat-6/'\'' '\''org.apache.catalina.startup.Bootstrap'\'' '\''stop'\''' i=
+ [[ '--stop' '--quiet' '--make-pidfile' '--pidfile' '/var/run/tomcat-6.pid' '--exec' '/opt/sun-jdk-1.5.0.13/bin/java''-Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager' '-Djava.util.logging.config.file=/var/lib/tomcat-6//conf/logging.properties' '-server' '-Xms384M' '-Xmx1024M' '-classpath' '/usr/share/tomcat-6/lib/:/usr/share/tomcat-6//lib:/opt/sun-jdk-1.5.0.13/lib/tools.jar:/usr/share/tomcat-6//bin/bootstrap.jar:/usr/share/tomcat-6//bin/tomcat-juli.jar' '-Dcatalina.base=/var/lib/tomcat-6/' '-Dcatalina.home=/usr/share/tomcat-6/' '-Djava.io.tmpdir=/var/tmp/tomcat-6/' 'org.apache.catalina.startup.Bootstrap' 'stop' != \'\-\-\s\t\o\p\'\ \'\-\-\q\u\i\e\t\'\ \'\-\-\m\a\k\e\-\p\i\d\f\i\l\e\'\ \'\-\-\p\i\d\f\i\l\e\'\ \'\/\v\a\r\/\r\u\n\/\t\o\m\c\a\t\-\6\.\p\i\d\'\ \'\-\-\e\x\e\c\'\ \'\/\o\p\t\/\s\u\n\-\j\d\k\-\1\.\5\.\0\.\1\3\/\b\i\n\/\j\a\v\a\'\ \'\-\-\'\ \'\-\D\j\a\v\a\.\u\t\i\l\.\l\o\g\g\i\n\g\.\m\a\n\a\g\e\r\=\o\r\g\.\a\p\a\c\h\e\.\j\u\l\i\.\C\l\a\s\s\L\o\a\d\e\r\L\o\g\M\a\n\a\g\e\r\'\ \'\-\D\j\a\v\a\.\u\t\i\l\.\l\o\g\g\i\n\g\.\c\o\n\f\i\g\.\f\i\l\e\=\/\v\a\r\/\l\i\b\/\t\o\m\c\a\t\-\6\/\/\c\o\n\f\/\l\o\g\g\i\n\g\.\p\r\o\p\e\r\t\i\e\s\'\ \'\-\s\e\r\v\e\r\'\ \'\-\X\m\s\3\8\4\M\'\ \'\-\X\m\x\1\0\2\4\M\'\ \'\-\c\l\a\s\s\p\a\t\h\'\ \'\/\u\s\r\/\s\h\a\r\e\/\t\o\m\c\a\t\-\6\/\l\i\b\/\:\/\u\s\r\/\s\h\a\r\e\/\t\o\m\c\a\t\-\6\/\/\l\i\b\:\/\o\p\t\/\s\u\n\-\j\d\k\-\1\.\5\.\0\.\1\3\/\l\i\b\/\t\o\o\l\s\.\j\a\r\:\/\u\s\r\/\s\h\a\r\e\/\t\o\m\c\a\t\-\6\/\/\b\i\n\/\b\o\o\t\s\t\r\a\p\.\j\a\r\:\/\u\s\r\/\s\h\a\r\e\/\t\o\m\c\a\t\-\6\/\/\b\i\n\/\t\o\m\c\a\t\-\j\u\l\i\.\j\a\r\'\ \'\-\D\c\a\t\a\l\i\n\a\.\b\a\s\e\=\/\v\a\r\/\l\i\b\/\t\o\m\c\a\t\-\6\/\'\ \'\-\D\c\a\t\a\l\i\n\a\.\h\o\m\e\=\/\u\s\r\/\s\h\a\r\e\/\t\o\m\c\a\t\-\6\/\'\ \'\-\D\j\a\v\a\.\i\o\.\t\m\p\d\i\r\=\/\v\a\r\/\t\m\p\/\t\o\m\c\a\t\-\6\/\'\ \'\o\r\g\.\a\p\a\c\h\e\.\c\a\t\a\l\i\n\a\.\s\t\a\r\t\u\p\.\B\o\o\t\s\t\r\a\p\'\ \'\s\t\o\p\' ]]
+ eargs=("${args##* \'--\' }")
+ eval rc_shift_args ''\''--stop'\'' '\''--quiet'\'' '\''--make-pidfile'\'' '\''--pidfile'\'' '\''/var/run/tomcat-6.pid'\'' '\''--exec'\'' '\''/opt/sun-jdk-1.5.0.13/bin/java'\'''
++ rc_shift_args --stop --quiet --make-pidfile --pidfile /var/run/tomcat-6.pid --exec /opt/sun-jdk-1.5.0.13/bin/java
++ local addvar
++ [[ 7 != \0 ]]
++ [[ --stop != \-* ]]
++ unset addvar
++ case "$1" in
++ stopping=true
++ shift
++ [[ 6 != \0 ]]
++ [[ --quiet != \-* ]]
++ unset addvar
++ case "$1" in
++ shift
++ [[ 5 != \0 ]]
++ [[ --make-pidfile != \-* ]]
++ unset addvar
++ case "$1" in
++ shift
++ [[ 4 != \0 ]]
++ [[ --pidfile != \-* ]]
++ unset addvar
++ case "$1" in
++ addvar=pidfile
++ shift
++ [[ 3 != \0 ]]
++ [[ /var/run/tomcat-6.pid != \-* ]]
++ [[ -n pidfile ]]
++ [[ -z '' ]]
++ eval 'pidfile="/var/run/tomcat-6.pid"'
+++ pidfile=/var/run/tomcat-6.pid
++ shift
++ continue
++ [[ 2 != \0 ]]
++ [[ --exec != \-* ]]
++ unset addvar
++ case "$1" in
++ addvar=cmd
++ shift
++ [[ 1 != \0 ]]
++ [[ /opt/sun-jdk-1.5.0.13/bin/java != \-* ]]
++ [[ -n cmd ]]
++ [[ -z '' ]]
++ eval 'cmd="/opt/sun-jdk-1.5.0.13/bin/java"'
+++ cmd=/opt/sun-jdk-1.5.0.13/bin/java
++ shift
++ continue
++ [[ 0 != \0 ]]
++ [[ -z 5 ]]
++ [[ 5 != \5 ]]
+ [[ -n '' ]]
++ bash_variable tomcat-6
++ local args=tomcat-6
++ LC_ALL=C
++ echo tomcat_6
+ local bash_service=tomcat_6
+ [[ -n '' ]]
+ return 0
+ false
+ true
+ rc_stop_daemon
+ local pid pids retval=0
+ [[ -n /opt/sun-jdk-1.5.0.13/bin/java ]]
+ is_daemon_running /opt/sun-jdk-1.5.0.13/bin/java /var/run/tomcat-6.pid
+ local cmd pidfile pids pid
+ [[ 2 == \1 ]]
+ local i j=2
+ (( i=0 ))
+ (( i<j-1 ))
+ cmd=' /opt/sun-jdk-1.5.0.13/bin/java'
+ shift
+ (( i++ ))
+ (( i<j-1 ))
+ pidfile=/var/run/tomcat-6.pid
++ pidof /opt/sun-jdk-1.5.0.13/bin/java
++ local arg args
++ for arg in '"$@"'
++ [[ java == \r\p\c\.\n\f\s\d ]]
++ args=' '\''/opt/sun-jdk-1.5.0.13/bin/java'\'''
++ eval /bin/pidof -x ''\''/opt/sun-jdk-1.5.0.13/bin/java'\'''
+++ /bin/pidof -x /opt/sun-jdk-1.5.0.13/bin/java
+ pids='15567 7535'
+ [[ -z 15567 7535 ]]
+ [[ -s /var/run/tomcat-6.pid ]]
+ read pid
+ pids=' 15567 7535 '
+ [[ 7535 != \ \1\5\5\6\7\ \7\5\3\5\ ]]
++ pidof /opt/sun-jdk-1.5.0.13/bin/java
++ local arg args
++ for arg in '"$@"'
++ [[ java == \r\p\c\.\n\f\s\d ]]
++ args=' '\''/opt/sun-jdk-1.5.0.13/bin/java'\'''
++ eval /bin/pidof -x ''\''/opt/sun-jdk-1.5.0.13/bin/java'\'''
+++ /bin/pidof -x /opt/sun-jdk-1.5.0.13/bin/java
+ pids='15567 7535'
+ [[ -s /var/run/tomcat-6.pid ]]
+ read pid
+ [[ -n 15567 7535 ]]
+ pids=' 15567 7535 '
+ [[ 7535 == \ \1\5\5\6\7\ \7\5\3\5\ ]]
+ pids=15567
+ [[ -z 15567 ]]
+ [[ no == \y\e\s ]]
+ for pid in '${pids}'
+ [[ no == \y\e\s ]]
+ rc_kill_pid 15567 false
+ local pid=15567 session=false
+ rc_try_kill_pid 15567 '' false
+ local pid=15567 signal=TERM session=false i s p e
+ s=0.1
+ (( i=0 ))
+ (( i<RC_RETRY_COUNT*10 ))
+ false
+ [[ 0 == \0 ]]
+ kill -s TERM 15567
+ [[ ! -d /proc/15567 ]]
+ LC_ALL=C
+ /bin/sleep 0.1
+ (( i++ ))
+ (( i<RC_RETRY_COUNT*10 ))
+ false
+ [[ 1 == \0 ]]
+ [[ ! -d /proc/15567 ]]
+ LC_ALL=C
+ /bin/sleep 0.1
+ (( i++ ))
+ (( i<RC_RETRY_COUNT*10 ))
+ false
+ [[ 2 == \0 ]]
+ [[ ! -d /proc/15567 ]]
+ LC_ALL=C
+ /bin/sleep 0.1
+ (( i++ ))
+ (( i<RC_RETRY_COUNT*10 ))
+ false
+ [[ 3 == \0 ]]
+ [[ ! -d /proc/15567 ]]
+ LC_ALL=C
+ /bin/sleep 0.1
+ (( i++ ))
+ (( i<RC_RETRY_COUNT*10 ))
+ false
+ [[ 4 == \0 ]]
+ [[ ! -d /proc/15567 ]]
+ LC_ALL=C
+ /bin/sleep 0.1
+ (( i++ ))
+ (( i<RC_RETRY_COUNT*10 ))
+ false
+ [[ 5 == \0 ]]
+ [[ ! -d /proc/15567 ]]
+ LC_ALL=C
+ /bin/sleep 0.1
+ (( i++ ))
+ (( i<RC_RETRY_COUNT*10 ))
+ false
+ [[ 6 == \0 ]]
+ [[ ! -d /proc/15567 ]]
+ LC_ALL=C
+ /bin/sleep 0.1
+ (( i++ ))
+ (( i<RC_RETRY_COUNT*10 ))
+ false
+ [[ 7 == \0 ]]
+ [[ ! -d /proc/15567 ]]
+ LC_ALL=C
+ /bin/sleep 0.1
+ (( i++ ))
+ (( i<RC_RETRY_COUNT*10 ))
+ false
+ [[ 8 == \0 ]]
+ [[ ! -d /proc/15567 ]]
+ LC_ALL=C
+ /bin/sleep 0.1
+ (( i++ ))
+ (( i<RC_RETRY_COUNT*10 ))
+ false
+ [[ 9 == \0 ]]
+ [[ ! -d /proc/15567 ]]
+ LC_ALL=C
+ /bin/sleep 0.1
+ (( i++ ))
+ (( i<RC_RETRY_COUNT*10 ))
+ false
+ [[ 10 == \0 ]]
+ [[ ! -d /proc/15567 ]]
+ LC_ALL=C
+ /bin/sleep 0.1
+ (( i++ ))
+ (( i<RC_RETRY_COUNT*10 ))
+ false
+ [[ 11 == \0 ]]
+ [[ ! -d /proc/15567 ]]
+ LC_ALL=C
+ /bin/sleep 0.1
+ (( i++ ))
+ (( i<RC_RETRY_COUNT*10 ))
+ false
+ [[ 12 == \0 ]]
+ [[ ! -d /proc/15567 ]]
+ LC_ALL=C
+ /bin/sleep 0.1
+ (( i++ ))
+ (( i<RC_RETRY_COUNT*10 ))
+ false
+ [[ 13 == \0 ]]
+ [[ ! -d /proc/15567 ]]
+ LC_ALL=C
+ /bin/sleep 0.1
+ (( i++ ))
+ (( i<RC_RETRY_COUNT*10 ))
+ false
+ [[ 14 == \0 ]]
+ [[ ! -d /proc/15567 ]]
+ LC_ALL=C
+ /bin/sleep 0.1
+ (( i++ ))
+ (( i<RC_RETRY_COUNT*10 ))
+ false
+ [[ 15 == \0 ]]
+ [[ ! -d /proc/15567 ]]
+ LC_ALL=C
+ /bin/sleep 0.1
+ (( i++ ))
+ (( i<RC_RETRY_COUNT*10 ))
+ false
+ [[ 16 == \0 ]]
+ [[ ! -d /proc/15567 ]]
+ LC_ALL=C
+ /bin/sleep 0.1
+ (( i++ ))
+ (( i<RC_RETRY_COUNT*10 ))
+ false
+ [[ 17 == \0 ]]
+ [[ ! -d /proc/15567 ]]
+ LC_ALL=C
+ /bin/sleep 0.1
+ (( i++ ))
+ (( i<RC_RETRY_COUNT*10 ))
+ false
+ [[ 18 == \0 ]]
+ [[ ! -d /proc/15567 ]]
+ LC_ALL=C
+ /bin/sleep 0.1
+ (( i++ ))
+ (( i<RC_RETRY_COUNT*10 ))
+ false
+ [[ 19 == \0 ]]
+ [[ ! -d /proc/15567 ]]
+ LC_ALL=C
+ /bin/sleep 0.1
+ (( i++ ))
+ (( i<RC_RETRY_COUNT*10 ))
+ false
+ [[ 20 == \0 ]]
+ [[ ! -d /proc/15567 ]]
+ LC_ALL=C
+ /bin/sleep 0.1
+ (( i++ ))
+ (( i<RC_RETRY_COUNT*10 ))
+ false
+ [[ 21 == \0 ]]
+ [[ ! -d /proc/15567 ]]
+ LC_ALL=C
+ /bin/sleep 0.1
+ (( i++ ))
+ (( i<RC_RETRY_COUNT*10 ))
+ false
+ [[ 22 == \0 ]]
+ [[ ! -d /proc/15567 ]]
+ LC_ALL=C
+ /bin/sleep 0.1
+ (( i++ ))
+ (( i<RC_RETRY_COUNT*10 ))
+ false
+ [[ 23 == \0 ]]
+ [[ ! -d /proc/15567 ]]
+ LC_ALL=C
+ /bin/sleep 0.1
+ (( i++ ))
+ (( i<RC_RETRY_COUNT*10 ))
+ false
+ [[ 24 == \0 ]]
+ [[ ! -d /proc/15567 ]]
+ LC_ALL=C
+ /bin/sleep 0.1
+ (( i++ ))
+ (( i<RC_RETRY_COUNT*10 ))
+ false
+ [[ 25 == \0 ]]
+ [[ ! -d /proc/15567 ]]
+ LC_ALL=C
+ /bin/sleep 0.1
+ (( i++ ))
+ (( i<RC_RETRY_COUNT*10 ))
+ false
+ [[ 26 == \0 ]]
+ [[ ! -d /proc/15567 ]]
+ LC_ALL=C
+ /bin/sleep 0.1
+ (( i++ ))
+ (( i<RC_RETRY_COUNT*10 ))
+ false
+ [[ 27 == \0 ]]
+ [[ ! -d /proc/15567 ]]
+ LC_ALL=C
+ /bin/sleep 0.1
+ (( i++ ))
+ (( i<RC_RETRY_COUNT*10 ))
+ false
+ [[ 28 == \0 ]]
+ [[ ! -d /proc/15567 ]]
+ LC_ALL=C
+ /bin/sleep 0.1
+ (( i++ ))
+ (( i<RC_RETRY_COUNT*10 ))
+ false
+ [[ 29 == \0 ]]
+ [[ ! -d /proc/15567 ]]
+ LC_ALL=C
+ /bin/sleep 0.1
+ (( i++ ))
+ (( i<RC_RETRY_COUNT*10 ))
+ false
+ [[ 30 == \0 ]]
+ [[ ! -d /proc/15567 ]]
+ LC_ALL=C
+ /bin/sleep 0.1
+ (( i++ ))
+ (( i<RC_RETRY_COUNT*10 ))
+ false
+ [[ 31 == \0 ]]
+ [[ ! -d /proc/15567 ]]
+ LC_ALL=C
+ /bin/sleep 0.1
+ (( i++ ))
+ (( i<RC_RETRY_COUNT*10 ))
+ false
+ [[ 32 == \0 ]]
+ [[ ! -d /proc/15567 ]]
+ LC_ALL=C
+ /bin/sleep 0.1
+ (( i++ ))
+ (( i<RC_RETRY_COUNT*10 ))
+ false
+ [[ 33 == \0 ]]
+ [[ ! -d /proc/15567 ]]
+ LC_ALL=C
+ /bin/sleep 0.1
+ (( i++ ))
+ (( i<RC_RETRY_COUNT*10 ))
+ false
+ [[ 34 == \0 ]]
+ [[ ! -d /proc/15567 ]]
+ LC_ALL=C
+ /bin/sleep 0.1
+ (( i++ ))
+ (( i<RC_RETRY_COUNT*10 ))
+ false
+ [[ 35 == \0 ]]
+ [[ ! -d /proc/15567 ]]
+ LC_ALL=C
+ /bin/sleep 0.1
+ (( i++ ))
+ (( i<RC_RETRY_COUNT*10 ))
+ false
+ [[ 36 == \0 ]]
+ [[ ! -d /proc/15567 ]]
+ LC_ALL=C
+ /bin/sleep 0.1
+ (( i++ ))
+ (( i<RC_RETRY_COUNT*10 ))
+ false
+ [[ 37 == \0 ]]
+ [[ ! -d /proc/15567 ]]
+ LC_ALL=C
+ /bin/sleep 0.1
+ (( i++ ))
+ (( i<RC_RETRY_COUNT*10 ))
+ false
+ [[ 38 == \0 ]]
+ [[ ! -d /proc/15567 ]]
+ LC_ALL=C
+ /bin/sleep 0.1
+ (( i++ ))
+ (( i<RC_RETRY_COUNT*10 ))
+ false
+ [[ 39 == \0 ]]
+ [[ ! -d /proc/15567 ]]
+ LC_ALL=C
+ /bin/sleep 0.1
+ (( i++ ))
+ (( i<RC_RETRY_COUNT*10 ))
+ false
+ [[ 40 == \0 ]]
+ [[ ! -d /proc/15567 ]]
+ LC_ALL=C
+ /bin/sleep 0.1
+ (( i++ ))
+ (( i<RC_RETRY_COUNT*10 ))
+ false
+ [[ 41 == \0 ]]
+ [[ ! -d /proc/15567 ]]
+ LC_ALL=C
+ /bin/sleep 0.1
+ (( i++ ))
+ (( i<RC_RETRY_COUNT*10 ))
+ false
+ [[ 42 == \0 ]]
+ [[ ! -d /proc/15567 ]]
+ LC_ALL=C
+ /bin/sleep 0.1
+ (( i++ ))
+ (( i<RC_RETRY_COUNT*10 ))
+ false
+ [[ 43 == \0 ]]
+ [[ ! -d /proc/15567 ]]
+ LC_ALL=C
+ /bin/sleep 0.1
+ (( i++ ))
+ (( i<RC_RETRY_COUNT*10 ))
+ false
+ [[ 44 == \0 ]]
+ [[ ! -d /proc/15567 ]]
+ LC_ALL=C
+ /bin/sleep 0.1
+ (( i++ ))
+ (( i<RC_RETRY_COUNT*10 ))
+ false
+ [[ 45 == \0 ]]
+ [[ ! -d /proc/15567 ]]
+ LC_ALL=C
+ /bin/sleep 0.1
+ (( i++ ))
+ (( i<RC_RETRY_COUNT*10 ))
+ false
+ [[ 46 == \0 ]]
+ [[ ! -d /proc/15567 ]]
+ LC_ALL=C
+ /bin/sleep 0.1
+ (( i++ ))
+ (( i<RC_RETRY_COUNT*10 ))
+ false
+ [[ 47 == \0 ]]
+ [[ ! -d /proc/15567 ]]
+ LC_ALL=C
+ /bin/sleep 0.1
+ (( i++ ))
+ (( i<RC_RETRY_COUNT*10 ))
+ false
+ [[ 48 == \0 ]]
+ [[ ! -d /proc/15567 ]]
+ LC_ALL=C
+ /bin/sleep 0.1
+ (( i++ ))
+ (( i<RC_RETRY_COUNT*10 ))
+ false
+ [[ 49 == \0 ]]
+ [[ ! -d /proc/15567 ]]
+ LC_ALL=C
+ /bin/sleep 0.1
+ (( i++ ))
+ (( i<RC_RETRY_COUNT*10 ))
+ return 1
+ [[ no == \y\e\s ]]
+ return 1
+ retval=1
+ [[ no == \y\e\s ]]
+ return 1
+ result=1
+ [[ 1 == \0 ]]
+ [[ 0 == \0 ]]
+ [[ -f /var/lib/init.d/daemons/tomcat-6 ]]
+ return 1
+ eend 1
+ local retval=1
+ shift
+ _eend 1 eerror ''
+ local retval=1 efunc=eerror msg
+ shift 2
+ [[ 1 == \0 ]]
+ [[ -c /dev/null ]]
+ rc_splash stop
+ [[ -n '' ]]
+ msg='[ !! ]'
+ [[ yes == \y\e\s ]] [ !! ]'e ' [ !! ]
+ return 1
+ LAST_E_CMD=eend
+ return 1
+ retval=1
+ [[ 1 == \0 ]]
+ [[ 1 != 0 ]]
+ is_runlevel_stop
+ [[ -d /var/lib/init.d/softscripts.new ]]
+ [[ default == \r\e\b\o\o\t ]]
+ [[ default == \s\h\u\t\d\o\w\n ]]
+ [[ 1 == \0 ]]
+ mark_service_started tomcat-6
+ [[ -z tomcat-6 ]]
+ ln -snf /etc/init.d/tomcat-6 /var/lib/init.d/started/tomcat-6
+ rm -f /var/lib/init.d/starting/tomcat-6 /var/lib/init.d/inactive/tomcat-6 /var/lib/init.d/wasinactive/tomcat-6 /var/lib/init.d/stopping/tomcat-6 '/var/lib/init.d/scheduled/*/tomcat-6'
+ return 0
+ service_message eerror 'ERROR: tomcat-6 failed to stop'
+ [[ no != \y\e\s ]]
+ return
+ svc_trap
+ trap 'eerror "ERROR: ${SVCNAME} caught an interrupt"; exit 1' INT QUIT TSTP
+ return 1
+ retval=1
+ [[ '' == \t\r\u\e ]]
+ rm -f '/var/lib/init.d/scheduled/*/tomcat-6'
+ exit 1
por0714 gorkaion # ps aux | grep tomcat
root 15562 0.0 0.0 4108 1040 pts/1 S Dec10 0:00 /bin/bash /sbin/runscript.sh /etc/init.d/tomcat-6 start
tomcat 15567 0.1 10.3 1315308 215276 pts/1 Sl Dec10 1:36 /opt/sun-jdk-1.5.0.13/bin/java -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager -Djava.util.logging.config.file=/var/lib/tomcat-6//conf/logging.properties -server -Xms384M -Xmx1024M -classpath /usr/share/tomcat-6/lib/:/usr/share/tomcat-6//lib:/opt/sun-jdk-1.5.0.13/lib/tools.jar:/usr/share/tomcat-6//bin/bootstrap.jar:/usr/share/tomcat-6//bin/tomcat-juli.jar -Dcatalina.base=/var/lib/tomcat-6/ -Dcatalina.home=/usr/share/tomcat-6/ -Djava.io.tmpdir=/var/tmp/tomcat-6/ org.apache.catalina.startup.Bootstrap start
root 24632 0.0 0.0 2916 812 pts/0 S+ 15:26 0:00 grep --colour=auto tomcat
por0714 gorkaion # kill -9 15567
bash: kill: (15567) - No such process
por0714 gorkaion # ps aux | grep tomcat
root 24634 0.0 0.0 2908 736 pts/0 R+ 15:26 0:00 grep --colour=auto tomcat
por0714 gorkaion #