Question
How do I execute a script when my server reboots?
Answer
To execute a script when the server reboots, the crontab can be used with an "@reboot" timeframe. Example:
@reboot /path/to/my_script.sh
How do I execute a script when my server reboots?
To execute a script when the server reboots, the crontab can be used with an "@reboot" timeframe. Example:
@reboot /path/to/my_script.sh
Comments
0 comments
Article is closed for comments.