aqa-test-tools icon indicating copy to clipboard operation
aqa-test-tools copied to clipboard

auto-restart MongoDB after reboot

Open llxia opened this issue 3 years ago • 1 comments

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.

llxia avatar Oct 17 '22 13:10 llxia

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

llxia avatar Oct 17 '22 13:10 llxia