Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

EC2 User-data script is not starting my Java application

I need to start my java application with a script,
but User Data are not working: if I start the application manually, it works.

My EC2 instance has Ubuntu

Here’s the snippet of the User Data I’m using:

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

#!/bin/bash
cd /home/ubuntu
sudo su
java -jar HelpDesk-0.0.1-SNAPSHOT.jar

>Solution :

User Data script are executed only on the very first boot: it seems you expect that the script will be executed at every reboot.

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading