aqa-test-tools
aqa-test-tools copied to clipboard
auto-restart MongoDB after reboot
In the event of the TRSS production machine rebooting (i.e., power outage), we need to make sure TRSS and its related service can be automatically restarted. TRSS services will be auto-restarted, but that is not sufficient. We need to auto-restart MongoDB after reboot.
A cron job may be needed as we need to start the services in order after reboot: restart MongoDB restart TRSS services
The following cmd can be used:
@reboot sleep 60 && my_script.sh
https://unix.stackexchange.com/questions/57852/how-do-i-start-a-cron-job-1-min-after-reboot