Skip to content

Instantly share code, notes, and snippets.

@julianoBRL
Created January 19, 2022 15:48
Show Gist options
  • Save julianoBRL/2761eb6f544ed3c00f6f7fcbf61d99b6 to your computer and use it in GitHub Desktop.
Save julianoBRL/2761eb6f544ed3c00f6f7fcbf61d99b6 to your computer and use it in GitHub Desktop.
[Unit]
Description=Admin service
After=syslog.target network.target
[Service]
WorkingDirectory=/home/ec2-user
ExecStart=/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.312.b07-1.amzn2.0.2.x86_64/bin/java -jar admin-server-0.0.1-SNAPSHOT.jar
ExecStop=/bin/kill -15 $MAINPID
[Install]
WantedBy=multi-user.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment