Hi,
Below is the Linux flavor I’m using
Code:
uname -a
Linux mydomain.org 3.82.95-13.77.amzn1.x86_64 #1 SMP Wed Dec 3 21:29:43 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux
I’m trying to get a script to run when I reboot my Linux instance (sudo reboot now). I have created this script in /etc/init.d/start_tomcat with +x permissions ..
Code:
#!/bin/sh
sh /home/davea/install/apache-tomcat-6.0.35/bin/startup.sh
and created shortcuts to this script at /etc/rc2.d/start_tomcat, /etc/rc3.d/start_tomcat, /etc/rc4.d/start_tomcat, and /etc/rc5.d/start_tomcat . I can run the script (sudo sh /etc/init.d/start_tomcat) just fine on a command line, but when I reboot my system, the script isn’t getting run (nothing in my Tomcat logs and the server is not started). How can I figure out what is happening when Linux is attempting to run this script?