How do I get a script to run on startup in Linux?
Answer
Create a script such as “startup.sh” using your favorite text editor. Save the file in your /etc/init. d/ directory. Change the permissions of the script (to make it executable) by typing “
chmod +x /etc/init.