Contents
How do I add a startup script in Linux?
This is the way I do it on Red Hat Linux systems. Put your script in /etc/init. d , owned by root and executable.
…
Test Test Test:
- Run your test script without cron to make sure it actually works.
- Make sure you saved your command in cron, use sudo crontab -e.
- Reboot the server to confirm it all works sudo @reboot.
What are startup scripts in Linux?
A startup script is a file that performs tasks during the startup process of a virtual machine (VM) instance. Startup scripts can apply to all VMs in a project or to a single VM.