Skip to content

Conversation

@joshiste
Copy link
Contributor

Two separate commits with the following improvements:

  1. if present source ${identity}.conf (next to the jar-file) before building the command using JAVA_OPTS and RUN_ARGS. So the .conf file can be used to specify JVM-options and default run-arguments

  2. Add LSB-Header to the init-script. Though specifiying spring-boot-application as provides / short descriptions seems a bit odd.

CLA is signed,

@philwebb
Copy link
Member

Nice nice nice! 👍

One quick question, do you think /etc is the best place for {$identity}.conf or should we look for it next to the .jar file. I'm primarily thinking about parity with application.properties.

@philwebb philwebb added this to the 1.3.0.M2 milestone Jun 17, 2015
@philwebb philwebb added the type: enhancement A general enhancement label Jun 17, 2015
@joshiste
Copy link
Contributor Author

joshiste commented Jun 17, 2015 via email

@joshiste joshiste force-pushed the init-improvements branch from 6bd4ca0 to 4f18e01 Compare June 17, 2015 16:29
@joshiste
Copy link
Contributor Author

Updated the PR to look for the .conf file next to the jar

@philwebb
Copy link
Member

Cool. Thanks

@bedge
Copy link

bedge commented Jun 17, 2015

+1 vote for this.
I just submitted a patch for almost the exact same thing :-)
https://github.com/bedge/spring-boot/issues/1

One suggestion though, if you move the sourcing up to above the default settings, you can set the default params for these

[[ -z "$PID_FOLDER" ]] && PID_FOLDER="/var/run"
[[ -z "$LOG_FOLDER" ]] && LOG_FOLDER="/var/log"
! [[ -x "$PID_FOLDER" ]] && PID_FOLDER="/tmp"
! [[ -x "$LOG_FOLDER" ]] && LOG_FOLDER="/tmp"

in the .conf file.

@philwebb philwebb closed this in f0bb60b Jun 19, 2015
philwebb added a commit that referenced this pull request Jun 19, 2015
philwebb added a commit that referenced this pull request Jun 19, 2015
* init-improvements:
  Update executable jar documentation
  Improve executable jar launch script
@philwebb
Copy link
Member

Thanks, I've squashed the commits together and reworked the ordering to follow @bedge's suggestion.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type: enhancement A general enhancement

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants