UNIX Startup Script
Have you seen some scenario when the server on which your application is hosted shut down due to any reason, be it Power Outage where the server exists or as per schedule. If it is as per schedule then definitely you would have planned to start the hosted applications. What if, the server shutdowns without your knowledge and the Server maintenance technicians start them up without having knowledge of starting your application residing in it? Here we go with the Startup Script that can help you do anything you want to start along with making the server live. You would also get the term Bootstrap or Bootstraping scripts for scripts that run on booting the machine. Prepare Bootstrap Script Let's first prepare a script that you want to run: # !/bin/sh echo "Vishesh : $(date)" > /etc/motd This piece of code sets the message of the day to be the last reboot time so that each user can see it after their first login. This command sets the date of server getting started when