title: apache tomcat not starting while service tomcat start
body: <p>I am using RHEL 7 os with this i am using apache tomcat6. while try to start it using this command i am getting this message as:</p>
  
  <p>Starting tomcat6: /etc/init.d/tomcat6: line 70: checkpid: command not found</p>
  
  <p>and at line number 70 the code is as:</p>
  
  <pre><code>if checkpid $kpid 2&gt;&amp;1; then
              echo "process allready running"
              return -1
          else
              echo "lock file found but no process running for pid $kpid, continuing"
          fi
  </code></pre>
  
  <p>after this execute the command i got process id for tomcat by this command:</p>
  
  <pre><code>[root@localhost ~]# ps -ef | grep tomcat
  root     14074 13882  0 01:50 pts/1    00:00:00 grep --color=auto tomcat
  </code></pre>
  
  <p>but my war file is not deployed and also localhost:8080 is not working.</p>