Skip to content

Instantly share code, notes, and snippets.

View adessein's full-sized avatar

Arnaud Dessein adessein

View GitHub Profile
@adessein
adessein / run-jar-as-a-service.md
Created January 25, 2020 21:08 — forked from marlonbernardes/run-jar-as-a-service.md
How to make a jar file run on startup
  1. Create the start and stop scripts of your application.
  • Example:

myapp-start.sh

#!/bin/bash
cd /home/ubuntu/myapp/
java -jar myapp.jar --server.port=8888 &