Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/rburgst/spring-boot-initscript

an init script for spring boot projects
https://github.com/rburgst/spring-boot-initscript

Last synced: about 2 months ago
JSON representation

an init script for spring boot projects

Awesome Lists containing this project

README

        

Spring Boot init.d script
=========================

### NOTE: As of Spring Boot 1.3 it is possible to have an official init.d script injected onto the front of a packaged .jar file. Instructions found [in the Spring documentation](http://docs.spring.io/spring-boot/docs/1.3.x-SNAPSHOT/reference/html/deployment-install.html)

This script is meant to run a spring-boot project as a linux service using initd.
It is meant as a template that can be reconfigured to an arbitrary war file.

Use the variable names at the top of the script to customize to your specific project.

This file is known to work with CentOS, however, will not work yet for Ubuntu (due to the differences in `/etc/init.d/functions`).

Parameter | Description | Default Value
----------| ----------- | ----------
`PROJECT_NAME` | the name of the project, will also be used for the war file, log file, ... | `springboot`
`SERVICE_USER` | the user which should run the service | `root`
`SPRINGBOOTAPP_HOME` | base directory for the spring boot jar | `/usr/local/$PROJECT_NAME`
`SPRINGBOOTAPP_WAR` | the jar/war file to start via `java -jar` | `$SPRINGBOOTAPP_HOME/$PROJECT_NAME.war`
`SPRINGBOOTAPP_JAVA` | java executable for spring boot app, change if you have multiple jdks installed | `$JAVA_HOME/bin/java`