<rdf:RDF
    xmlns:s='http://snipsnap.org/rdf/snip-schema#'
    xmlns:rdf='http://www.w3.org/1999/02/22-rdf-syntax-ns#'
    xml:base='http://wiki.marandcustomsolutions.com/rdf'>
    <s:Snip rdf:about='http://wiki.marandcustomsolutions.com/rdf#bidz/tomcat/tomcat-service'
         s:name='bidz/tomcat/tomcat-service'
         s:cUser='mpecher'
         s:oUser=''
         s:mUser='mpecher'>
        <s:content>{code}&#xD;&#xA;#       This is the init script for starting up the&#xD;&#xA;#               Jakarta Tomcat server&#xD;&#xA;#&#xD;&#xA;# chkconfig: 345 91 10&#xD;&#xA;# description: Starts and stops the Tomcat daemon.&#xD;&#xA;#&#xD;&#xA;&#xD;&#xA;# Source function library.&#xD;&#xA;. /etc/init.d/functions&#xD;&#xA;&#xD;&#xA;# Get config.&#xD;&#xA;#. /etc/sysconfig/network&#xD;&#xA;&#xD;&#xA;# Check that networking is up.&#xD;&#xA;#[ &quot;${NETWORKING}&quot; = &quot;no&quot; ] &amp;&amp; exit 0&#xD;&#xA;&#xD;&#xA;umask 077&#xD;&#xA;&#xD;&#xA;start(){&#xD;&#xA;        echo -n $&quot;Starting Tomcat service: &quot;&#xD;&#xA;        export JAVA_HOME=&quot;/usr/java/jdk1.5.0_08&quot;&#xD;&#xA;        daemon /usr/java/apache-tomcat-5.5.17/bin/startup.sh&#xD;&#xA;        RETVAL=$?&#xD;&#xA;        echo&#xD;&#xA;}&#xD;&#xA;&#xD;&#xA;stop(){&#xD;&#xA;        echo -n $&quot;Stopping Tomcat service: &quot;&#xD;&#xA;        export JAVA_HOME=&quot;/usr/java/jdk1.5.0_08&quot;&#xD;&#xA;        daemon /usr/java/apache-tomcat-5.5.17/bin/shutdown.sh&#xD;&#xA;        RETVAL=$?&#xD;&#xA;        echo&#xD;&#xA;}&#xD;&#xA;&#xD;&#xA;status(){&#xD;&#xA;        numproc=`ps -ef | grep tomcat | grep -v &quot;grep itomcat&quot; | wc -l`&#xD;&#xA;        if [ $numproc -gt 0 ]; then&#xD;&#xA;                echo &quot;Tomcat is running...&quot;&#xD;&#xA;        else&#xD;&#xA;                echo &quot;Tomcat is stopped...&quot;&#xD;&#xA;        fi&#xD;&#xA;}&#xD;&#xA;&#xD;&#xA;restart(){&#xD;&#xA;    stop&#xD;&#xA;    start&#xD;&#xA;}&#xD;&#xA;&#xD;&#xA;&#xD;&#xA;# See how we were called.&#xD;&#xA;case &quot;$1&quot; in&#xD;&#xA;  start)&#xD;&#xA;        start&#xD;&#xA;        ;;&#xD;&#xA;  stop)&#xD;&#xA;        stop&#xD;&#xA;        ;;&#xD;&#xA;  status)&#xD;&#xA;        status&#xD;&#xA;        ;;&#xD;&#xA;  restart|reload)&#xD;&#xA;        restart&#xD;&#xA;        ;;&#xD;&#xA;  *)&#xD;&#xA;        echo $&quot;Usage: $0 {start|stop|status|restart}&quot;&#xD;&#xA;        exit 1&#xD;&#xA;esac&#xD;&#xA;&#xD;&#xA;exit 0&#xD;&#xA;&#xD;&#xA;{code}</s:content>
        <s:mTime>2006-08-25 20:15:08.0</s:mTime>
        <s:cTime>2006-08-25 20:15:08.0</s:cTime>
        <s:comments
             rdf:type='http://www.w3.org/1999/02/22-rdf-syntax-ns#Bag'/>
        <s:snipLinks>
            <rdf:Bag>
                <rdf:li rdf:resource='#snipsnap-index'/>
                <rdf:li rdf:resource='http://wiki.marandcustomsolutions.com/rdf#bidz/tomcat'/>
                <rdf:li rdf:resource='http://wiki.marandcustomsolutions.com/rdf#snipsnap-index/'/>
            </rdf:Bag>
        </s:snipLinks>
        <s:attachments
             rdf:type='http://www.w3.org/1999/02/22-rdf-syntax-ns#Bag'/>
    </s:Snip>
</rdf:RDF>

