Skip to content

Instantly share code, notes, and snippets.

@usmansaleem
Last active February 20, 2019 02:19
Show Gist options
  • Save usmansaleem/ba4a228f6626bfcf01e96f5323705714 to your computer and use it in GitHub Desktop.
Save usmansaleem/ba4a228f6626bfcf01e96f5323705714 to your computer and use it in GitHub Desktop.
systemd configuration for spring boot application. On Ubuntu, create symlink /etc/systemd/system/blogboot.service pointing to actual file.
[Unit]
Description=Blog Boot
After=syslog.target
[Service]
User=bootapp
Environment="JAVA_HOME=/var/blogboot/jdk-11.0.2+7-jre"
ExecStart=/var/blogboot/blog-boot-0.0.0-SNAPSHOT.jar
SuccessExitStatus=143
[Install]
WantedBy=multi-user.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment