I want to configure a script to execute automatically when a server is rebooted. Currently I need to start the script manually after server reboot. I am using Amazon Linux server.
I was able to configure the script to start automatically on my local ubuntu System as:
- I started terminal and typed
crontab -e
- I added
@reboot path/to/script
and saved it.
After restart the script started automatically on my local machine.
When I try to do same on server crontab file is not opened.