/etc/rc.local doesn't execute apache tomcat startup script on boot

Posted by user119720 on Server Fault See other posts from Server Fault or by user119720
Published on 2012-12-19T08:53:48Z Indexed on 2012/12/19 11:04 UTC
Read the original article Hit count: 207

Filed under:
|
|

I'm having some problem with my centOS machine.I want to insert a line inside the rc.local to execute apache tomcat on startup. Below are the configuration for /etc/rc.local

#!/bin/sh 
# # This script will be executed *after* all the other init scripts. 
# You can put your own initialization stuff in here if you don't 
# want to do the full Sys V style init stuff.

touch /var/lock/subsys/local
/opt/apache-jakarta/bin/startup.sh

Unfortunately,the apache tomcat does not start on the boot time. I've already execute the script manually and it is working without any issues. Is there any specific syntax to put script inside the rc.local?Or did I forgetting something?Please Advice.Thanks.

EDIT:

My boot.log only show this output:

Dec 17 21:04:53 localhost NET[2969]: /sbin/dhclient-script : updated /etc/resolv.conf

© Server Fault or respective owner

Related posts about linux

Related posts about centos