Today I learned how to make a script run on sytem startup. This way you can run your script after rebooting automatically. Let’s take a look at the steps:
1. Open /etc/init.d/rc.local file.
2. Add the script you want to run on boot process there. For example:
sh /usr/share/apache-tomcat-7.0.27/bin/startup.sh
echo ‘Apache Tomcat Running’
3. Save the file. Your script will run on boot process.