I am running a grails 4.0.10 app using the following command.
nohup java -Dgrails.env=prod -Duser.timezone=US/Mountain -jar RCRoadRaceWeb4-0.1.jar &
The app connects to mysql 8 server.
When i reboot the system using the command
sudo reboot
after the system reboots.
when i check the running processes using
ps -aux
I dont see the app running.
My question is how can i make sure after the system completes rebooting the command
nohup java -Dgrails.env=prod -Duser.timezone=US/Mountain -jar RCRoadRaceWeb4-0.1.jar &
gets executed automatically so that i dont have to manually run this command after system reboot to start the grails app.
I appreciate any help! Thanks!